🔨 added user-defined exceptions 313-315
This commit is contained in:
parent
144cf6a4c7
commit
9e560ca40c
3 changed files with 15 additions and 12 deletions
|
@ -12059,7 +12059,7 @@ basic_json_parser_74:
|
|||
*/
|
||||
default:
|
||||
{
|
||||
JSON_THROW(std::domain_error("invalid value to unflatten"));
|
||||
JSON_THROW(type_error(313, "invalid value to unflatten"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12496,7 +12496,7 @@ basic_json_parser_74:
|
|||
{
|
||||
if (not value.is_object())
|
||||
{
|
||||
JSON_THROW(std::domain_error("only objects can be unflattened"));
|
||||
JSON_THROW(type_error(314, "only objects can be unflattened"));
|
||||
}
|
||||
|
||||
basic_json result;
|
||||
|
@ -12506,7 +12506,7 @@ basic_json_parser_74:
|
|||
{
|
||||
if (not element.second.is_primitive())
|
||||
{
|
||||
JSON_THROW(std::domain_error("values in object must be primitive"));
|
||||
JSON_THROW(type_error(315, "values in object must be primitive"));
|
||||
}
|
||||
|
||||
// assign value to reference pointed to by JSON pointer; Note
|
||||
|
|
|
@ -11092,7 +11092,7 @@ class basic_json
|
|||
*/
|
||||
default:
|
||||
{
|
||||
JSON_THROW(std::domain_error("invalid value to unflatten"));
|
||||
JSON_THROW(type_error(313, "invalid value to unflatten"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -11529,7 +11529,7 @@ class basic_json
|
|||
{
|
||||
if (not value.is_object())
|
||||
{
|
||||
JSON_THROW(std::domain_error("only objects can be unflattened"));
|
||||
JSON_THROW(type_error(314, "only objects can be unflattened"));
|
||||
}
|
||||
|
||||
basic_json result;
|
||||
|
@ -11539,7 +11539,7 @@ class basic_json
|
|||
{
|
||||
if (not element.second.is_primitive())
|
||||
{
|
||||
JSON_THROW(std::domain_error("values in object must be primitive"));
|
||||
JSON_THROW(type_error(315, "values in object must be primitive"));
|
||||
}
|
||||
|
||||
// assign value to reference pointed to by JSON pointer; Note
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue