/third_party/json/tests/src/ |
H A D | unit-reference_access.cpp | 48 "[json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is object", json::type_error&); 50 "[json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is object", json::type_error&); 52 "[json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is object", json::type_error&); 54 "[json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is object", json::type_error&); 56 "[json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is object", json::type_error [all...] |
H A D | unit-element_access2.cpp | 88 CHECK_THROWS_WITH_AS(j_nonobject.at("foo"), "[json.exception.type_error.304] cannot use at() with null", typename Json::type_error&); 89 CHECK_THROWS_WITH_AS(j_nonobject_const.at("foo"), "[json.exception.type_error.304] cannot use at() with null", typename Json::type_error&); 92 CHECK_THROWS_WITH_AS(j_nonobject.at(std::string_view(std::string_view("foo"))), "[json.exception.type_error.304] cannot use at() with null", typename Json::type_error&); 93 CHECK_THROWS_WITH_AS(j_nonobject_const.at(std::string_view(std::string_view("foo"))), "[json.exception.type_error.304] cannot use at() with null", typename Json::type_error&); 101 CHECK_THROWS_WITH_AS(j_nonobject.at("foo"), "[json.exception.type_error.304] cannot use at() with boolean", typename Json::type_error 1539 CHECK_THROWS_WITH_AS(Json().value("foo", "default"), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1540 CHECK_THROWS_WITH_AS(Json().value("foo", str), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1564 CHECK_THROWS_WITH_AS(Json().value(key, "default"), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1565 CHECK_THROWS_WITH_AS(Json().value(key, str), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1589 CHECK_THROWS_WITH_AS(Json().value(key, "default"), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1590 CHECK_THROWS_WITH_AS(Json().value(key, str), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1614 CHECK_THROWS_WITH_AS(Json().value(key, "default"), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1615 CHECK_THROWS_WITH_AS(Json().value(key, str), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1640 CHECK_THROWS_WITH_AS(Json().value(key, "default"), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1641 CHECK_THROWS_WITH_AS(Json().value(key, str), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1669 CHECK_THROWS_WITH_AS(Json().template value<string_t>("foo", "default"), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1670 CHECK_THROWS_WITH_AS(Json().template value<string_t>("foo", str), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1698 CHECK_THROWS_WITH_AS(Json().template value<string_t>(key, "default"), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1699 CHECK_THROWS_WITH_AS(Json().template value<string_t>(key, str), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1727 CHECK_THROWS_WITH_AS(Json().template value<string_t>(key, "default"), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1728 CHECK_THROWS_WITH_AS(Json().template value<string_t>(key, str), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1752 CHECK_THROWS_WITH_AS(Json().template value<string_t>(key, "default"), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1753 CHECK_THROWS_WITH_AS(Json().template value<string_t>(key, str), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1789 CHECK_THROWS_WITH_AS(Json().template value<string_t>(key, "default"), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json 1790 CHECK_THROWS_WITH_AS(Json().template value<string_t>(key, str), "[json.exception.type_error.306] cannot use value() with null", typename Json::type_error&); global() member in Json [all...] |
H A D | unit-conversions.cpp | 86 "[json.exception.type_error.302] type must be object, but is null", json::type_error&); member in json 89 "[json.exception.type_error.302] type must be object, but is array", json::type_error&); member in json 92 "[json.exception.type_error.302] type must be object, but is string", json::type_error&); member in json 94 "[json.exception.type_error.302] type must be object, " 95 "but is boolean", json::type_error&); member in json 98 "[json.exception.type_error.302] type must be object, but is number", json::type_error member in json 101 "[json.exception.type_error.302] type must be object, but is number", json::type_error&); global() member in json 104 "[json.exception.type_error.302] type must be object, but is number", json::type_error&); global() member in json 224 "[json.exception.type_error.302] type must be array, but is null", json::type_error&); global() member in json 234 "[json.exception.type_error.302] type must be array, but is null", json::type_error&); global() member in json 271 "[json.exception.type_error.302] type must be array, but is object", json::type_error&); global() member in json 274 "[json.exception.type_error.302] type must be array, but is null", json::type_error&); global() member in json 277 "[json.exception.type_error.302] type must be array, but is object", json::type_error&); global() member in json 280 "[json.exception.type_error.302] type must be array, but is string", json::type_error&); global() member in json 283 "[json.exception.type_error.302] type must be array, but is boolean", json::type_error&); global() member in json 286 "[json.exception.type_error.302] type must be array, but is number", json::type_error&); global() member in json 289 "[json.exception.type_error.302] type must be array, but is number", json::type_error&); global() member in json 292 "[json.exception.type_error.302] type must be array, but is number", json::type_error&); global() member in json 422 "[json.exception.type_error.302] type must be string, but is null", json::type_error&); global() member in json 425 "[json.exception.type_error.302] type must be string, but is object", json::type_error&); global() member in json 428 "[json.exception.type_error.302] type must be string, but is array", json::type_error&); global() member in json 431 "but is boolean", json::type_error&); global() member in json 434 "[json.exception.type_error.302] type must be string, but is number", json::type_error&); global() member in json 437 "[json.exception.type_error.302] type must be string, but is number", json::type_error&); global() member in json 440 "[json.exception.type_error.302] type must be string, but is number", json::type_error&); global() member in json 447 "[json.exception.type_error.302] type must be string, but is null", json::type_error&); global() member in json 449 "[json.exception.type_error.302] type must be string, but is object", json::type_error&); global() member in json 451 "[json.exception.type_error.302] type must be string, but is array", json::type_error&); global() member in json 453 "[json.exception.type_error.302] type must be string, but is boolean", json::type_error&); global() member in json 455 "[json.exception.type_error.302] type must be string, but is number", json::type_error&); global() member in json 457 "[json.exception.type_error.302] type must be string, but is number", json::type_error&); global() member in json 459 "[json.exception.type_error.302] type must be string, but is number", json::type_error&); global() member in json 502 "[json.exception.type_error.302] type must be null, but is string", json::type_error&); global() member in json 504 "[json.exception.type_error.302] type must be null, but is object", json::type_error&); global() member in json 506 "[json.exception.type_error.302] type must be null, but is array", json::type_error&); global() member in json 508 "[json.exception.type_error.302] type must be null, but is boolean", json::type_error&); global() member in json 510 "[json.exception.type_error.302] type must be null, but is number", json::type_error&); global() member in json 512 "[json.exception.type_error.302] type must be null, but is number", json::type_error&); global() member in json 514 "[json.exception.type_error.302] type must be null, but is number", json::type_error&); global() member in json 571 json::type_error&); global() member in json 575 "[json.exception.type_error.302] type must be boolean, but is null", json::type_error&); global() member in json 578 "but is object", json::type_error&); global() member in json 581 "[json.exception.type_error.302] type must be boolean, but is array", json::type_error&); global() member in json 584 "but is string", json::type_error&); global() member in json 588 "number", json::type_error&); global() member in json 592 "number", json::type_error&); global() member in json 596 "number", json::type_error&); global() member in json 835 "[json.exception.type_error.302] type must be number, but is null", json::type_error&); global() member in json 838 "[json.exception.type_error.302] type must be number, but is object", json::type_error&); global() member in json 841 "[json.exception.type_error.302] type must be number, but is array", json::type_error&); global() member in json 844 "[json.exception.type_error.302] type must be number, but is string", json::type_error&); global() member in json 848 "boolean", json::type_error&); global() member in json 1098 "[json.exception.type_error.302] type must be number, but is null", json::type_error&); global() member in json 1101 "[json.exception.type_error.302] type must be number, but is object", json::type_error&); global() member in json 1104 "[json.exception.type_error.302] type must be number, but is array", json::type_error&); global() member in json 1107 "[json.exception.type_error.302] type must be number, but is string", json::type_error&); global() member in json 1111 "boolean", json::type_error&); global() member in json [all...] |
H A D | unit-diagnostics.cpp | 27 CHECK_THROWS_WITH_AS(s = j.get<std::string>(), "[json.exception.type_error.302] type must be string, but is number", json::type_error); 35 CHECK_THROWS_WITH_AS(s = j["a"]["b"]["c"].get<std::string>(), "[json.exception.type_error.302] (/a/b/c) type must be string, but is number", json::type_error); 56 CHECK_THROWS_WITH_AS(j["array"][4][5], "[json.exception.type_error.305] (/array/4) cannot use operator[] with a numeric argument with boolean", json::type_error); 71 CHECK_THROWS_WITH_AS(s = j["a/b"]["m~n"].get<std::string>(), "[json.exception.type_error.302] (/a~1b/m~0n) type must be string, but is number", json::type_error); 85 CHECK_THROWS_WITH_AS(j.update(k["bla"].begin(), k["bla"].end()), "[json.exception.type_error.312] (/bla) cannot use update() with number", json::type_error); 94 CHECK_THROWS_WITH_AS(json({"0", "0"})[1].get<int>(), "[json.exception.type_error.302] (/1) type must be number, but is string", json::type_error); global() member in json 95 CHECK_THROWS_WITH_AS(json({"0", "1"})[1].get<int>(), "[json.exception.type_error.302] (/1) type must be number, but is string", json::type_error); global() member in json [all...] |
H A D | unit-element_access1.cpp | 60 CHECK_THROWS_WITH_AS(j_nonarray.at(0), "[json.exception.type_error.304] cannot use at() with null", json::type_error&); 61 CHECK_THROWS_WITH_AS(j_nonarray_const.at(0), "[json.exception.type_error.304] cannot use at() with null", json::type_error&); 69 CHECK_THROWS_WITH_AS(j_nonarray.at(0), "[json.exception.type_error.304] cannot use at() with boolean", json::type_error&); 70 CHECK_THROWS_WITH_AS(j_nonarray_const.at(0), "[json.exception.type_error.304] cannot use at() with boolean", json::type_error&); 78 CHECK_THROWS_WITH_AS(j_nonarray.at(0), "[json.exception.type_error.304] cannot use at() with string", json::type_error [all...] |
H A D | unit-modifiers.cpp | 181 CHECK_THROWS_WITH_AS(j.push_back("Hello"), "[json.exception.type_error.308] cannot use push_back() with number", json::type_error&); 210 CHECK_THROWS_WITH_AS(j.push_back(k), "[json.exception.type_error.308] cannot use push_back() with number", json::type_error&); 242 CHECK_THROWS_WITH_AS(j.push_back(json::object_t::value_type({"one", 1})), "[json.exception.type_error.308] cannot use push_back() with number", json::type_error&); 277 CHECK_THROWS_WITH_AS(j.push_back({1}), "[json.exception.type_error.308] cannot use push_back() with object", json::type_error&); 278 CHECK_THROWS_WITH_AS(j.push_back({1, 2}), "[json.exception.type_error.308] cannot use push_back() with object", json::type_error [all...] |
H A D | unit-serialization.cpp | 86 CHECK_THROWS_WITH_AS(j.dump(), "[json.exception.type_error.316] invalid UTF-8 byte at index 2: 0xA9", json::type_error&); 87 CHECK_THROWS_WITH_AS(j.dump(1, ' ', false, json::error_handler_t::strict), "[json.exception.type_error.316] invalid UTF-8 byte at index 2: 0xA9", json::type_error&); 97 CHECK_THROWS_WITH_AS(j.dump(), "[json.exception.type_error.316] incomplete UTF-8 string; last byte: 0xC2", json::type_error&); 98 CHECK_THROWS_AS(j.dump(1, ' ', false, json::error_handler_t::strict), json::type_error&); 108 CHECK_THROWS_WITH_AS(j.dump(), "[json.exception.type_error.316] invalid UTF-8 byte at index 5: 0x34", json::type_error&); 109 CHECK_THROWS_AS(j.dump(1, ' ', false, json::error_handler_t::strict), json::type_error [all...] |
H A D | unit-regression1.cpp | 377 CHECK_THROWS_WITH_AS(s2 = o["int"], "[json.exception.type_error.302] (/int) type must be string, but is number", json::type_error); 379 CHECK_THROWS_WITH_AS(s2 = o["int"], "[json.exception.type_error.302] type must be string, but is number", json::type_error); 1125 CHECK_THROWS_WITH_AS(create(j_number), "[json.exception.type_error.302] type must be array, but is number", json::type_error&); 1126 CHECK_THROWS_WITH_AS(create(j_null), "[json.exception.type_error.302] type must be array, but is null", json::type_error&); 1137 CHECK_THROWS_WITH_AS(create(j_number), "[json.exception.type_error.302] type must be array, but is number", json::type_error 1299 CHECK_THROWS_WITH_AS(json().get<std::valarray<double>>(), "[json.exception.type_error.302] type must be array, but is null", json::type_error&); global() member in json [all...] |
H A D | unit-convenience.cpp | 166 CHECK_THROWS_WITH_AS(check_escaped("ä\xA9ü"), "[json.exception.type_error.316] invalid UTF-8 byte at index 2: 0xA9", json::type_error&); member in json 168 CHECK_THROWS_WITH_AS(check_escaped("\xC2"), "[json.exception.type_error.316] incomplete UTF-8 string; last byte: 0xC2", json::type_error&); member in json
|
H A D | fuzzer-parse_bson.cpp | 63 catch (const json::type_error&) in LLVMFuzzerTestOneInput()
|
H A D | fuzzer-parse_cbor.cpp | 58 catch (const json::type_error&) in LLVMFuzzerTestOneInput()
|
H A D | fuzzer-parse_msgpack.cpp | 58 catch (const json::type_error&) in LLVMFuzzerTestOneInput()
|
/third_party/json/include/nlohmann/detail/conversions/ |
H A D | from_json.hpp | 41 JSON_THROW(type_error::create(302, concat("type must be null, but is ", j.type_name()), &j)); in from_json() 79 JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j)); in get_arithmetic_value() 88 JSON_THROW(type_error::create(302, concat("type must be boolean, but is ", j.type_name()), &j)); in from_json() 98 JSON_THROW(type_error::create(302, concat("type must be string, but is ", j.type_name()), &j)); in from_json() 114 JSON_THROW(type_error::create(302, concat("type must be string, but is ", j.type_name()), &j)); in from_json() 156 JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j)); in from_json() 173 JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j)); in from_json() 270 JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j)); 289 JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j)); 300 JSON_THROW(type_error in from_json() [all...] |
/third_party/json/include/nlohmann/ |
H A D | json.hpp | 187 using type_error = detail::type_error; 916 JSON_THROW(type_error::create(301, "cannot create object from initializer list", nullptr)); in basic_json() 1399 JSON_THROW(type_error::create(302, detail::concat("type must be boolean, but is ", type_name()), this)); in get_impl() 1506 @throw type_error.303 if ReferenceType does not match underlying value 1520 JSON_THROW(type_error::create(303, detail::concat("incompatible ReferenceType for get_ref, actual type is ", obj.type_name()), &obj)); in get_ref_impl() 1852 @throw type_error.302 in case passed type @a ValueType is incompatible 1895 JSON_THROW(type_error::create(302, detail::concat("type must be binary, but is ", type_name()), this)); in get_binary() 1907 JSON_THROW(type_error::create(302, detail::concat("type must be binary, but is ", type_name()), this)); in get_binary() 1943 JSON_THROW(type_error in at() [all...] |
/third_party/python/Objects/ |
H A D | abstract.c | 19 type_error(const char *msg, PyObject *obj) in type_error() function 172 return type_error("sequence index must " in PyObject_GetItem() 199 return type_error("'%.200s' object is not subscriptable", o); in PyObject_GetItem() 226 type_error("sequence index must be " in PyObject_SetItem() 232 type_error("'%.200s' object does not support item assignment", o); in PyObject_SetItem() 260 type_error("sequence index must be " in PyObject_DelItem() 266 type_error("'%.200s' object does not support item deletion", o); in PyObject_DelItem() 1100 return type_error("can't multiply sequence by " in sequence_repeat() 1340 return type_error("bad operand type for unary -: '%.200s'", o); in PyNumber_Negative() 1357 return type_error("ba in PyNumber_Positive() [all...] |
/third_party/json/include/nlohmann/detail/ |
H A D | exceptions.hpp | 204 /// @sa https://json.nlohmann.me/api/basic_json/type_error/ 205 class type_error : public exception class 209 static type_error create(int id_, const std::string& what_arg, BasicJsonContext context) in create() 211 std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg); in create() 217 type_error(int id_, const char* what_arg) : exception(id_, what_arg) {} in type_error() function in detail::type_error
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
H A D | ecma-builtin-typeerror.c | 34 #define BUILTIN_UNDERSCORED_ID type_error
|
/third_party/json/docs/examples/ |
H A D | type_error.cpp | 14 catch (json::type_error& e) in main()
|
H A D | error_handler_t.cpp | 14 catch (json::type_error& e) in main()
|
H A D | object.cpp | 24 catch (json::type_error& e) in main()
|
H A D | at__object_t_key_type.cpp | 26 // exception type_error.304 in main() 33 catch (json::type_error& e) in main()
|
H A D | at__object_t_key_type_const.cpp | 20 // exception type_error.304 in main() 27 catch (json::type_error& e) in main()
|
H A D | at__size_type.cpp | 21 // exception type_error.304 in main() 28 catch (json::type_error& e) in main()
|
H A D | at__size_type_const.cpp | 15 // exception type_error.304 in main() 22 catch (json::type_error& e) in main()
|
H A D | get_ref.cpp | 23 catch (json::type_error& ex) in main()
|