|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
exception indicating a parse error More...
#include <json.hpp>
Static Public Member Functions | |
| template<typename BasicJsonType> | |
| static parse_error | create (int id_, const position_t &pos, const std::string &what_arg, const BasicJsonType &context) |
| create a parse error exception | |
| template<typename BasicJsonType> | |
| static parse_error | create (int id_, std::size_t byte_, const std::string &what_arg, const BasicJsonType &context) |
Public Attributes | |
| const std::size_t | byte |
| byte index of the parse error | |
| Public Attributes inherited from nlohmann::detail::exception | |
| const int | id |
| the id of the exception | |
Private Member Functions | |
| parse_error (int id_, std::size_t byte_, const char *what_arg) | |
Static Private Member Functions | |
| static std::string | position_string (const position_t &pos) |
Additional Inherited Members | |
| Public Member Functions inherited from nlohmann::detail::exception | |
| const char * | what () const noexcept override |
| returns the explanatory string | |
| Protected Member Functions inherited from nlohmann::detail::exception | |
| exception (int id_, const char *what_arg) | |
| Static Protected Member Functions inherited from nlohmann::detail::exception | |
| static std::string | name (const std::string &ename, int id_) |
| template<typename BasicJsonType> | |
| static std::string | diagnostics (const BasicJsonType &leaf_element) |
|
inlineprivate |
|
inlinestatic |
| [in] | id_ | the id of the exception |
| [in] | pos | the position where the error occurred (or with chars_read_total=0 if the position cannot be determined) |
| [in] | what_arg | the explanatory string |
Definition at line 2941 of file json.hpp.
References parse_error(), nlohmann::BasicJsonType(), nlohmann::detail::position_t::chars_read_total, nlohmann::detail::exception::diagnostics(), nlohmann::detail::exception::name(), and position_string().
Referenced by nlohmann::array_index(), nlohmann::detail::binary_reader< basic_json, InputType >::get_bson_binary(), nlohmann::detail::binary_reader< basic_json, InputType >::get_bson_string(), nlohmann::detail::binary_reader< basic_json, InputType >::get_cbor_binary(), nlohmann::detail::binary_reader< basic_json, InputType >::get_cbor_string(), nlohmann::detail::binary_reader< basic_json, InputType >::get_msgpack_string(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_high_precision_number(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_size_type(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_size_value(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_string(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_value(), nlohmann::detail::parser< BasicJsonType, InputAdapterType >::parse(), nlohmann::detail::binary_reader< basic_json, InputType >::parse_bson_element_internal(), nlohmann::detail::binary_reader< basic_json, InputType >::parse_cbor_internal(), nlohmann::detail::binary_reader< basic_json, InputType >::parse_msgpack_internal(), nlohmann::detail::binary_reader< basic_json, InputType >::sax_parse(), nlohmann::detail::parser< BasicJsonType, InputAdapterType >::sax_parse(), nlohmann::detail::parser< BasicJsonType, InputAdapterType >::sax_parse_internal(), nlohmann::split(), and nlohmann::detail::binary_reader< basic_json, InputType >::unexpect_eof().
|
inlinestatic |
Definition at line 2949 of file json.hpp.
References parse_error(), nlohmann::BasicJsonType(), nlohmann::detail::exception::diagnostics(), and nlohmann::detail::exception::name().
|
inlinestaticprivate |
Definition at line 2974 of file json.hpp.
References nlohmann::detail::position_t::chars_read_current_line, and nlohmann::detail::position_t::lines_read.
Referenced by create().
| const std::size_t nlohmann::detail::parse_error::byte |
The byte index of the last read character in the input file.
Definition at line 2966 of file json.hpp.
Referenced by parse_error().