/third_party/json/test/src/ |
D | unit-reference_access.cpp | 68 CHECK_THROWS_AS(value.get_ref<json::array_t&>(), json::type_error&); 71 CHECK_THROWS_AS(value.get_ref<json::string_t&>(), json::type_error&); 74 CHECK_THROWS_AS(value.get_ref<json::boolean_t&>(), json::type_error&); 77 CHECK_THROWS_AS(value.get_ref<json::number_integer_t&>(), json::type_error&); 80 CHECK_THROWS_AS(value.get_ref<json::number_unsigned_t&>(), json::type_error&); 83 CHECK_THROWS_AS(value.get_ref<json::number_float_t&>(), json::type_error&); 117 CHECK_THROWS_AS(value.get_ref<json::object_t&>(), json::type_error&); 121 CHECK_THROWS_AS(value.get_ref<json::string_t&>(), json::type_error&); 124 CHECK_THROWS_AS(value.get_ref<json::boolean_t&>(), json::type_error&); 127 CHECK_THROWS_AS(value.get_ref<json::number_integer_t&>(), json::type_error&); [all …]
|
D | unit-element_access2.cpp | 81 CHECK_THROWS_AS(j_nonobject.at("foo"), json::type_error&); 82 CHECK_THROWS_AS(j_nonobject_const.at("foo"), json::type_error&); 91 CHECK_THROWS_AS(j_nonobject.at("foo"), json::type_error&); 92 CHECK_THROWS_AS(j_nonobject_const.at("foo"), json::type_error&); 101 CHECK_THROWS_AS(j_nonobject.at("foo"), json::type_error&); 102 CHECK_THROWS_AS(j_nonobject_const.at("foo"), json::type_error&); 111 CHECK_THROWS_AS(j_nonobject.at("foo"), json::type_error&); 112 CHECK_THROWS_AS(j_nonobject_const.at("foo"), json::type_error&); 121 CHECK_THROWS_AS(j_nonobject.at("foo"), json::type_error&); 122 CHECK_THROWS_AS(j_nonobject_const.at("foo"), json::type_error&); [all …]
|
D | unit-conversions.cpp | 105 json::type_error&); 107 json::type_error&); 109 json::type_error&); 111 json::type_error&); 113 json::type_error&); 116 json::type_error&); 118 json::type_error&); 259 json::type_error&); 271 json::type_error&); 310 json::type_error&); [all …]
|
D | unit-element_access1.cpp | 82 CHECK_THROWS_AS(j_nonarray.at(0), json::type_error&); 83 CHECK_THROWS_AS(j_nonarray_const.at(0), json::type_error&); 93 CHECK_THROWS_AS(j_nonarray.at(0), json::type_error&); 94 CHECK_THROWS_AS(j_nonarray_const.at(0), json::type_error&); 104 CHECK_THROWS_AS(j_nonarray.at(0), json::type_error&); 105 CHECK_THROWS_AS(j_nonarray_const.at(0), json::type_error&); 115 CHECK_THROWS_AS(j_nonarray.at(0), json::type_error&); 116 CHECK_THROWS_AS(j_nonarray_const.at(0), json::type_error&); 126 CHECK_THROWS_AS(j_nonarray.at(0), json::type_error&); 127 CHECK_THROWS_AS(j_nonarray_const.at(0), json::type_error&); [all …]
|
D | unit-modifiers.cpp | 201 CHECK_THROWS_AS(j.push_back("Hello"), json::type_error&); 231 CHECK_THROWS_AS(j.push_back(k), json::type_error&); 264 … CHECK_THROWS_AS(j.push_back(json::object_t::value_type({"one", 1})), json::type_error&); 301 CHECK_THROWS_AS(j.push_back({1}), json::type_error&); 303 CHECK_THROWS_AS(j.push_back({1, 2}), json::type_error&); 305 CHECK_THROWS_AS(j.push_back({1, 2, 3, 4}), json::type_error&); 348 CHECK_THROWS_AS(j.emplace_back("Hello"), json::type_error&); 408 CHECK_THROWS_AS(j.emplace("foo", "bar"), json::type_error&); 440 CHECK_THROWS_AS(j += "Hello", json::type_error&); 470 CHECK_THROWS_AS(j += k, json::type_error&); [all …]
|
D | unit-diagnostics.cpp | 47 …string>(), "[json.exception.type_error.302] type must be string, but is number", json::type_error); 55 …, "[json.exception.type_error.302] (/a/b/c) type must be string, but is number", json::type_error); 76 …ror.305] (/array/4) cannot use operator[] with a numeric argument with boolean", json::type_error); 91 …json.exception.type_error.302] (/a~1b/m~0n) type must be string, but is number", json::type_error); 102 …t>(), "[json.exception.type_error.302] (/1) type must be number, but is string", json::type_error); 103 …t>(), "[json.exception.type_error.302] (/1) type must be number, but is string", json::type_error); 110 …, "[json.exception.type_error.315] (/~1foo) values in object must be primitive", json::type_error);
|
D | unit-serialization.cpp | 107 CHECK_THROWS_AS(j.dump(), json::type_error&); 109 … CHECK_THROWS_AS(j.dump(1, ' ', false, json::error_handler_t::strict), json::type_error&); 120 CHECK_THROWS_AS(j.dump(), json::type_error&); 122 … CHECK_THROWS_AS(j.dump(1, ' ', false, json::error_handler_t::strict), json::type_error&); 132 CHECK_THROWS_AS(j.dump(), json::type_error&); 134 … CHECK_THROWS_AS(j.dump(1, ' ', false, json::error_handler_t::strict), json::type_error&);
|
D | unit-convenience.cpp | 109 CHECK_THROWS_AS(check_escaped("ä\xA9ü"), json::type_error&); 113 CHECK_THROWS_AS(check_escaped("\xC2"), json::type_error&);
|
D | unit-regression1.cpp | 398 CHECK_THROWS_AS(s2 = o["int"], json::type_error); 1203 CHECK_THROWS_AS(create(j_number), json::type_error&); 1205 CHECK_THROWS_AS(create(j_null), json::type_error&); 1217 CHECK_THROWS_AS(create(j_number), json::type_error&); 1219 CHECK_THROWS_AS(create(j_null), json::type_error&); 1231 CHECK_THROWS_AS(create(j_number), json::type_error&); 1233 CHECK_THROWS_AS(create(j_null), json::type_error&); 1383 CHECK_THROWS_AS(json().get<std::valarray<double>>(), json::type_error&); 1455 CHECK_THROWS_AS(j.dump(), json::type_error&);
|
D | unit-bson.cpp | 47 CHECK_THROWS_AS(json::to_bson(j), json::type_error&); 56 CHECK_THROWS_AS(json::to_bson(j), json::type_error&); 63 CHECK_THROWS_AS(json::to_bson(j), json::type_error&); 71 CHECK_THROWS_AS(json::to_bson(j), json::type_error&); 78 CHECK_THROWS_AS(json::to_bson(j), json::type_error&); 85 CHECK_THROWS_AS(json::to_bson(j), json::type_error&); 92 CHECK_THROWS_AS(json::to_bson(j), json::type_error&);
|
D | unit-json_pointer.cpp | 501 "[json.exception.type_error.314] only objects can be unflattened"); 506 …CHECK_THROWS_WITH(json({{"/1", {1, 2, 3}}}).unflatten(), "[json.exception.type_error.315] (/~11) v… 508 …CHECK_THROWS_WITH(json({{"/1", {1, 2, 3}}}).unflatten(), "[json.exception.type_error.315] values i… 515 "[json.exception.type_error.313] invalid value to unflatten");
|
/third_party/json/doc/ |
D | index.md | 38 …- @link nlohmann::basic_json::type_error type_error @endlink for exceptions indicating executing a… 82 …link function will always throw a @link nlohmann::basic_json::type_error `json::type_error` @endli… 176 …<td class="nok_throws">throws @link nlohmann::basic_json::type_error `json::type_error` @endlink (… 177 …<td class="nok_throws">throws @link nlohmann::basic_json::type_error `json::type_error` @endlink (… 178 …<td class="nok_throws">throws @link nlohmann::basic_json::type_error `json::type_error` @endlink (… 179 …<td class="nok_throws">throws @link nlohmann::basic_json::type_error `json::type_error` @endlink (… 185 …<td class="nok_throws">throws @link nlohmann::basic_json::type_error `json::type_error` @endlink (… 186 …<td class="nok_throws">throws @link nlohmann::basic_json::type_error `json::type_error` @endlink (… 187 …<td class="nok_throws">throws @link nlohmann::basic_json::type_error `json::type_error` @endlink (… 248 …<td class="nok_throws">throws @link nlohmann::basic_json::type_error `json::type_error` @endlink (… [all …]
|
/third_party/json/doc/mkdocs/docs/api/basic_json/ |
D | type_error.md | 1 # basic_json::type_error 4 class type_error : public exception; 16 basic_json::exception <|-- basic_json::type_error 31 class basic_json::type_error #FFFF00 {} 46 The following code shows how a `type_error` exception can be caught. 49 --8<-- "examples/type_error.cpp" 55 --8<-- "examples/type_error.output"
|
D | exception.md | 15 basic_json::exception <|-- basic_json::type_error 35 - [`type_error`](type_error.md) for exceptions indicating executing a member function with a wrong …
|
D | value.md | 73 …- Throws [`type_error.302`](../../home/exceptions.md#jsonexceptiontype_error302) if `default_value… 75 …- Throws [`type_error.306`](../../home/exceptions.md#jsonexceptiontype_error306) if the JSON value… 78 …- Throws [`type_error.302`](../../home/exceptions.md#jsonexceptiontype_error302) if `default_value… 80 …- Throws [`type_error.306`](../../home/exceptions.md#jsonexceptiontype_error306) if the JSON value…
|
D | insert.md | 58 …- Throws [`type_error.309`](../../home/exceptions.md#jsonexceptiontype_error309) if called on JSON… 63 …- Throws [`type_error.309`](../../home/exceptions.md#jsonexceptiontype_error309) if called on JSON… 68 …- Throws [`type_error.309`](../../home/exceptions.md#jsonexceptiontype_error309) if called on JSON… 77 …- Throws [`type_error.309`](../../home/exceptions.md#jsonexceptiontype_error309) if called on JSON… 82 …- Throws [`type_error.309`](../../home/exceptions.md#jsonexceptiontype_error309) if called on JSON…
|
D | get_ref.md | 24 [`type_error.303`](../../home/exceptions.md#jsonexceptiontype_error303) otherwise 32 Throws [`type_error.303`](../../home/exceptions.md#jsonexceptiontype_error303) if the requested ref…
|
D | unflatten.md | 22 - Throws [`type_error.314`](../../home/exceptions.md#jsonexceptiontype_error314) if value is not an… 23 - Throws [`type_error.315`](../../home/exceptions.md#jsonexceptiontype_error315) if object values a…
|
D | erase.md | 64 …- Throws [`type_error.307`](../../home/exceptions.md#jsonexceptiontype_error307) if called on a `n… 72 …- Throws [`type_error.307`](../../home/exceptions.md#jsonexceptiontype_error307) if called on a `n… 80 …- Throws [`type_error.307`](../../home/exceptions.md#jsonexceptiontype_error307) when called on a … 83 …- Throws [`type_error.307`](../../home/exceptions.md#jsonexceptiontype_error307) when called on a …
|
D | update.md | 31 …- Throws [`type_error.312`](../../home/exceptions.md#jsonexceptiontype_error312) if called on JSON… 34 …- Throws [`type_error.312`](../../home/exceptions.md#jsonexceptiontype_error312) if called on JSON…
|
/third_party/json/include/nlohmann/detail/conversions/ |
D | from_json.hpp | 31 … JSON_THROW(type_error::create(302, "type must be null, but is " + std::string(j.type_name()), j)); in from_json() 69 …JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name()), j)… in get_arithmetic_value() 78 …JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(j.type_name()), j… in from_json() 88 …JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j)… in from_json() 104 …JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j)… in from_json() 144 …JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j)); in from_json() 161 …JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j)); in from_json() 258 …JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j)); 277 …JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()), j)); 288 …JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(j.type_name()), j)… in from_json() [all …]
|
/third_party/json/doc/mkdocs/docs/home/ |
D | exceptions.md | 13 json::exception <|-- json::type_error 512 The following code shows how a `type_error` exception can be caught. 515 --8<-- "examples/type_error.cpp" 521 --8<-- "examples/type_error.output" 524 ### json.exception.type_error.301 531 [json.exception.type_error.301] cannot create object from initializer list 534 ### json.exception.type_error.302 541 [json.exception.type_error.302] type must be object, but is null 544 [json.exception.type_error.302] type must be string, but is object 547 ### json.exception.type_error.303 [all …]
|
/third_party/python/Objects/ |
D | abstract.c | 19 type_error(const char *msg, PyObject *obj) in type_error() function 173 return type_error("sequence index must " in PyObject_GetItem() 197 return type_error("'%.200s' object is not subscriptable", o); in PyObject_GetItem() 224 type_error("sequence index must be " in PyObject_SetItem() 230 type_error("'%.200s' object does not support item assignment", o); in PyObject_SetItem() 258 type_error("sequence index must be " in PyObject_DelItem() 264 type_error("'%.200s' object does not support item deletion", o); in PyObject_DelItem() 1098 return type_error("can't multiply sequence by " in sequence_repeat() 1351 return type_error("bad operand type for unary -: '%.200s'", o); in PyNumber_Negative() 1368 return type_error("bad operand type for unary +: '%.200s'", o); in PyNumber_Positive() [all …]
|
/third_party/json/include/nlohmann/ |
D | json.hpp | 268 using type_error = detail::type_error; typedef in nlohmann::basic_json 1756 … JSON_THROW(type_error::create(301, "cannot create object from initializer list", basic_json())); in basic_json() 2849 …JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(type_name()), *th… in get_impl() 2970 …JSON_THROW(type_error::create(303, "incompatible ReferenceType for get_ref, actual type is " + std… in get_ref_impl() 3432 …JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()), *thi… in get_binary() 3443 …JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()), *thi… in get_binary() 3503 … JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this)); in at() 3550 … JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this)); in at() 3601 … JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this)); in at() 3652 … JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()), *this)); in at() [all …]
|
/third_party/json/include/nlohmann/detail/ |
D | exceptions.hpp | 327 class type_error : public exception class 331 static type_error create(int id_, const std::string& what_arg, const BasicJsonType& context) in create() 334 return type_error(id_, w.c_str()); in create() 339 type_error(int id_, const char* what_arg) : exception(id_, what_arg) {} in type_error() function in nlohmann::detail::type_error
|