exception indicating access out of the defined range
More...
#include <json.hpp>
|
| const char * | what () const noexcept override |
| | returns the explanatory string
|
|
| const int | id |
| | the id of the exception
|
|
| std::runtime_error | m |
| | an exception object as storage for error messages
|
exception indicating access out of the defined range
- See also
- https://json.nlohmann.me/api/basic_json/out_of_range/
Definition at line 2988 of file json.hpp.
◆ out_of_range()
| nlohmann::detail::out_of_range::out_of_range |
( |
int | id_, |
|
|
const char * | what_arg ) |
|
inlineprivate |
◆ create()
Definition at line 2992 of file json.hpp.
References nlohmann::BasicJsonType(), nlohmann::detail::exception::diagnostics(), nlohmann::detail::exception::name(), and out_of_range().
Referenced by nlohmann::array_index(), nlohmann::BasicJsonType(), nlohmann::detail::binary_writer< basic_json, CharType >::calc_bson_entry_header_size(), nlohmann::get_checked(), nlohmann::get_checked(), nlohmann::get_unchecked(), nlohmann::get_unchecked(), nlohmann::detail::parser< BasicJsonType, InputAdapterType >::sax_parse_internal(), nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >::start_array(), nlohmann::detail::json_sax_dom_parser< BasicJsonType >::start_array(), nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >::start_object(), nlohmann::detail::json_sax_dom_parser< BasicJsonType >::start_object(), and nlohmann::detail::binary_writer< basic_json, CharType >::write_bson_unsigned().
◆ diagnostics()
| std::string nlohmann::detail::exception::diagnostics |
( |
const BasicJsonType & | leaf_element | ) |
|
|
inlinestaticprotectedinherited |
Definition at line 2830 of file json.hpp.
References nlohmann::a, nlohmann::detail::array, nlohmann::b, nlohmann::BasicJsonType(), nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::discarded, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, and nlohmann::detail::string.
Referenced by nlohmann::detail::invalid_iterator::create(), nlohmann::detail::other_error::create(), nlohmann::detail::out_of_range::create(), nlohmann::detail::parse_error::create(), nlohmann::detail::parse_error::create(), and nlohmann::detail::type_error::create().
◆ name()
| std::string nlohmann::detail::exception::name |
( |
const std::string & | ename, |
|
|
int | id_ ) |
|
inlinestaticprotectedinherited |
◆ what()
| const char * nlohmann::detail::exception::what |
( |
| ) |
const |
|
inlineoverridenoexceptinherited |
returns the explanatory string
Definition at line 2812 of file json.hpp.
References m.
◆ id
| const int nlohmann::detail::exception::id |
|
inherited |
the id of the exception
Definition at line 2818 of file json.hpp.
| std::runtime_error nlohmann::detail::exception::m |
|
privateinherited |
The documentation for this class was generated from the following file: