Lines Matching refs:JSON_THROW

2507     #define JSON_THROW(exception) throw exception
2513 #define JSON_THROW(exception) std::abort()
2521 #undef JSON_THROW
2522 #define JSON_THROW JSON_THROW_USER
4597 JSON_THROW(type_error::create(302, concat("type must be null, but is ", j.type_name()), &j));
4635 JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j));
4644 JSON_THROW(type_error::create(302, concat("type must be boolean, but is ", j.type_name()), &j));
4654 JSON_THROW(type_error::create(302, concat("type must be string, but is ", j.type_name()), &j));
4670 JSON_THROW(type_error::create(302, concat("type must be string, but is ", j.type_name()), &j));
4712 JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j));
4729 JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j));
4826 JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j));
4845 JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j));
4856 JSON_THROW(type_error::create(302, concat("type must be binary, but is ", j.type_name()), &j));
4868 JSON_THROW(type_error::create(302, concat("type must be object, but is ", j.type_name()), &j));
4928 JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j));
4969 JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j));
4982 JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j));
4989 JSON_THROW(type_error::create(302, concat("type must be array, but is ", p.type_name()), &j));
5002 JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j));
5009 JSON_THROW(type_error::create(302, concat("type must be array, but is ", p.type_name()), &j));
5021 JSON_THROW(type_error::create(302, concat("type must be string, but is ", j.type_name()), &j));
6803 JSON_THROW(out_of_range::create(408, concat("excessive object size: ", std::to_string(len)), ref_stack.back()));
6835 JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back()));
6859 JSON_THROW(ex);
6993 JSON_THROW(out_of_range::create(408, concat("excessive object size: ", std::to_string(len)), ref_stack.back()));
7063 JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back()));
7109 JSON_THROW(ex);
13085 JSON_THROW(invalid_iterator::create(214, "cannot get value", m_object));
13101 JSON_THROW(invalid_iterator::create(214, "cannot get value", m_object));
13143 JSON_THROW(invalid_iterator::create(214, "cannot get value", m_object));
13260 JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object));
13305 JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object));
13313 JSON_THROW(invalid_iterator::create(213, "cannot compare order of object iterators", m_object));
13369 JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", m_object));
13448 JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", m_object));
13477 JSON_THROW(invalid_iterator::create(208, "cannot use operator[] for object iterators", m_object));
13483 JSON_THROW(invalid_iterator::create(214, "cannot get value", m_object));
13499 JSON_THROW(invalid_iterator::create(214, "cannot get value", m_object));
13517 JSON_THROW(invalid_iterator::create(207, "cannot use key() for non-object iterators", m_object));
13844 JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", nullptr));
13856 JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", nullptr));
13902 JSON_THROW(detail::parse_error::create(106, 0, detail::concat("array index '", s, "' must not begin with '0'"), nullptr));
13908 JSON_THROW(detail::parse_error::create(109, 0, detail::concat("array index '", s, "' is not a number"), nullptr));
13919 JSON_THROW(detail::out_of_range::create(404, detail::concat("unresolved reference token '", s, "'"), nullptr));
13926 JSON_THROW(detail::out_of_range::create(410, detail::concat("array index ", s, " exceeds size_type"), nullptr)); // LCOV_EXCL_LINE
13937 JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", nullptr));
14008 JSON_THROW(detail::type_error::create(313, "invalid value to unflatten", &j));
14089 JSON_THROW(detail::out_of_range::create(404, detail::concat("unresolved reference token '", reference_token, "'"), ptr));
14121 JSON_THROW(detail::out_of_range::create(402, detail::concat(
14140 JSON_THROW(detail::out_of_range::create(404, detail::concat("unresolved reference token '", reference_token, "'"), ptr));
14179 JSON_THROW(detail::out_of_range::create(402, detail::concat("array index '-' (", std::to_string(ptr->m_value.array->size()), ") is out of range"), ptr));
14196 JSON_THROW(detail::out_of_range::create(404, detail::concat("unresolved reference token '", reference_token, "'"), ptr));
14228 JSON_THROW(detail::out_of_range::create(402, detail::concat(
14247 JSON_THROW(detail::out_of_range::create(404, detail::concat("unresolved reference token '", reference_token, "'"), ptr));
14360 JSON_THROW(detail::parse_error::create(107, 1, detail::concat("JSON pointer must be empty or begin with '/' - was: '", reference_string, "'"), nullptr));
14395 JSON_THROW(detail::parse_error::create(108, 0, "escape character '~' must be followed with '0' or '1'", nullptr));
14492 JSON_THROW(detail::type_error::create(314, "only objects can be unflattened", &value));
14502 JSON_THROW(detail::type_error::create(315, "values in object must be primitive", &element.second));
14996 JSON_THROW(type_error::create(317, concat("to serialize to BSON, top-level type must be object, but is ", j.type_name()), &j));
15880 JSON_THROW(out_of_range::create(409, concat("BSON key cannot contain code point U+0000 (at byte ", std::to_string(it), ")"), &j));
16005 JSON_THROW(out_of_range::create(407, concat("integer number ", std::to_string(j.m_value.number_unsigned), " cannot be represented by BSON as it does not fit int64"), &j));
18397 JSON_THROW(type_error::create(316, concat("invalid UTF-8 byte at index ", std::to_string(i), ": 0x", hex_bytes(byte | 0)), nullptr));
18489 JSON_THROW(type_error::create(316, concat("incomplete UTF-8 string; last byte: 0x", hex_bytes(static_cast<std::uint8_t>(s.back() | 0))), nullptr));
18996 JSON_THROW(std::out_of_range("key not found"));
19011 JSON_THROW(std::out_of_range("key not found"));
19024 JSON_THROW(std::out_of_range("key not found"));
19039 JSON_THROW(std::out_of_range("key not found"));
19695 JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.11.2", nullptr)); // LCOV_EXCL_LINE
20094 JSON_THROW(type_error::create(301, "cannot create object from initializer list", nullptr));
20206 JSON_THROW(invalid_iterator::create(201, "iterators are not compatible", nullptr));
20224 JSON_THROW(invalid_iterator::create(204, "iterators out of range", first.m_object));
20293 JSON_THROW(invalid_iterator::create(206, detail::concat("cannot construct with iterators from ", first.m_object->type_name()), first.m_object));
20577 JSON_THROW(type_error::create(302, detail::concat("type must be boolean, but is ", type_name()), this));
20698 JSON_THROW(type_error::create(303, detail::concat("incompatible ReferenceType for get_ref, actual type is ", obj.type_name()), &obj));
21073 JSON_THROW(type_error::create(302, detail::concat("type must be binary, but is ", type_name()), this));
21085 JSON_THROW(type_error::create(302, detail::concat("type must be binary, but is ", type_name()), this));
21116 JSON_THROW(out_of_range::create(401, detail::concat("array index ", std::to_string(idx), " is out of range"), this));
21121 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21139 JSON_THROW(out_of_range::create(401, detail::concat("array index ", std::to_string(idx), " is out of range"), this));
21144 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21155 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21161 JSON_THROW(out_of_range::create(403, detail::concat("key '", key, "' not found"), this));
21175 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21181 JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this));
21193 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21199 JSON_THROW(out_of_range::create(403, detail::concat("key '", key, "' not found"), this));
21213 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21219 JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this));
21267 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a numeric argument with ", type_name()), this));
21280 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a numeric argument with ", type_name()), this));
21302 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this));
21317 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this));
21355 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this));
21372 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this));
21407 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21432 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21458 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21485 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21509 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21534 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21600 JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
21616 JSON_THROW(invalid_iterator::create(205, "iterator out of range", this));
21654 JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
21670 JSON_THROW(invalid_iterator::create(203, "iterators do not fit current value", this));
21687 JSON_THROW(invalid_iterator::create(204, "iterators out of range", this));
21727 JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
21741 JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
21754 JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
21795 JSON_THROW(out_of_range::create(401, detail::concat("array index ", std::to_string(idx), " is out of range"), this));
21802 JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
22263 JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this));
22296 JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this));
22328 JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this));
22384 JSON_THROW(type_error::create(311, detail::concat("cannot use emplace_back() with ", type_name()), this));
22409 JSON_THROW(type_error::create(311, detail::concat("cannot use emplace() with ", type_name()), this));
22463 JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
22470 JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this));
22490 JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
22497 JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this));
22507 JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this));
22513 JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
22519 JSON_THROW(invalid_iterator::create(210, "iterators do not fit", this));
22524 JSON_THROW(invalid_iterator::create(211, "passed iterators may not belong to container", this));
22538 JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this));
22544 JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
22558 JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this));
22564 JSON_THROW(invalid_iterator::create(210, "iterators do not fit", this));
22570 JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects", this));
22597 JSON_THROW(type_error::create(312, detail::concat("cannot use update() with ", type_name()), this));
22603 JSON_THROW(invalid_iterator::create(210, "iterators do not fit", this));
22609 JSON_THROW(type_error::create(312, detail::concat("cannot use update() with ", first.m_object->type_name()), first.m_object));
22671 JSON_THROW(type_error::create(310, detail::concat("cannot use swap(array_t&) with ", type_name()), this));
22687 JSON_THROW(type_error::create(310, detail::concat("cannot use swap(object_t&) with ", type_name()), this));
22703 JSON_THROW(type_error::create(310, detail::concat("cannot use swap(string_t&) with ", type_name()), this));
22719 JSON_THROW(type_error::create(310, detail::concat("cannot use swap(binary_t&) with ", type_name()), this));
22735 JSON_THROW(type_error::create(310, detail::concat("cannot use swap(binary_t::container_type&) with ", type_name()), this));
23928 JSON_THROW(out_of_range::create(401, detail::concat("array index ", std::to_string(idx), " is out of range"), &parent));
23969 JSON_THROW(out_of_range::create(403, detail::concat("key '", last_path, "' not found"), this));
23982 JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects", &json_patch));
24003 JSON_THROW(parse_error::create(105, 0, detail::concat(error_msg, " must have member '", member, "'"), &val));
24010 JSON_THROW(parse_error::create(105, 0, detail::concat(error_msg, " must have string member '", member, "'"), &val));
24020 JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects", &val));
24098 JSON_THROW(other_error::create(501, detail::concat("unsuccessful: ", val.dump()), &val));
24109 JSON_THROW(parse_error::create(105, 0, detail::concat("operation value '", op, "' is invalid"), &val));
24409 #undef JSON_THROW