📝 mention 302 exception in value() documentation #1601

parent 13d4f8f5
...@@ -3388,6 +3388,8 @@ class basic_json ...@@ -3388,6 +3388,8 @@ class basic_json
@return copy of the element at key @a key or @a default_value if @a key @return copy of the element at key @a key or @a default_value if @a key
is not found is not found
@throw type_error.302 if @a default_value does not match the type of the
value at @a key
@throw type_error.306 if the JSON value is not an object; in that case, @throw type_error.306 if the JSON value is not an object; in that case,
using `value()` with a key makes no sense. using `value()` with a key makes no sense.
...@@ -3461,6 +3463,8 @@ class basic_json ...@@ -3461,6 +3463,8 @@ class basic_json
@return copy of the element at key @a key or @a default_value if @a key @return copy of the element at key @a key or @a default_value if @a key
is not found is not found
@throw type_error.302 if @a default_value does not match the type of the
value at @a ptr
@throw type_error.306 if the JSON value is not an object; in that case, @throw type_error.306 if the JSON value is not an object; in that case,
using `value()` with a key makes no sense. using `value()` with a key makes no sense.
......
...@@ -16189,6 +16189,8 @@ class basic_json ...@@ -16189,6 +16189,8 @@ class basic_json
@return copy of the element at key @a key or @a default_value if @a key @return copy of the element at key @a key or @a default_value if @a key
is not found is not found
@throw type_error.302 if @a default_value does not match the type of the
value at @a key
@throw type_error.306 if the JSON value is not an object; in that case, @throw type_error.306 if the JSON value is not an object; in that case,
using `value()` with a key makes no sense. using `value()` with a key makes no sense.
...@@ -16262,6 +16264,8 @@ class basic_json ...@@ -16262,6 +16264,8 @@ class basic_json
@return copy of the element at key @a key or @a default_value if @a key @return copy of the element at key @a key or @a default_value if @a key
is not found is not found
@throw type_error.302 if @a default_value does not match the type of the
value at @a ptr
@throw type_error.306 if the JSON value is not an object; in that case, @throw type_error.306 if the JSON value is not an object; in that case,
using `value()` with a key makes no sense. using `value()` with a key makes no sense.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment