exception indicating a parse error More...
#include "json.h"
Inheritance diagram for detail::parse_error:
Collaboration diagram for detail::parse_error:Static Public Member Functions | |
| template<typename BasicJsonContext , enable_if_t< is_basic_json_context< BasicJsonContext >::value, int > = 0> | |
| static parse_error | create (int id_, const position_t &pos, const std::string &what_arg, BasicJsonContext context) |
| create a parse error exception | |
| template<typename BasicJsonContext , enable_if_t< is_basic_json_context< BasicJsonContext >::value, int > = 0> | |
| static parse_error | create (int id_, std::size_t byte_, const std::string &what_arg, BasicJsonContext context) |
Public Attributes | |
| const std::size_t | byte |
| byte index of the parse error | |
Public Attributes inherited from 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 detail::exception | |
| const char * | what () const noexcept override |
| returns the explanatory string | |
Protected Member Functions inherited from detail::exception | |
| exception (int id_, const char *what_arg) | |
Static Protected Member Functions inherited from detail::exception | |
| template<typename BasicJsonType > | |
| static std::string | diagnostics (const BasicJsonType *leaf_element) |
| static std::string | diagnostics (std::nullptr_t) |
| static std::string | name (const std::string &ename, int id_) |
exception indicating a parse error
|
inlineprivate |
|
inlinestatic |
create a parse error exception
| [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 4670 of file json.h.
References detail::position_t::chars_read_total, detail::concat(), detail::exception::diagnostics(), detail::exception::name(), and position_string().
Referenced by json_pointer< RefStringType >::array_index(), detail::wide_string_input_adapter< BaseInputAdapter, WideCharType >::get_elements(), detail::input_adapter(), detail::input_adapter(), and json_pointer< RefStringType >::split().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 4678 of file json.h.
References detail::concat(), detail::exception::diagnostics(), and detail::exception::name().
Here is the call graph for this function:
|
inlinestaticprivate |
Definition at line 4701 of file json.h.
References detail::position_t::chars_read_current_line, detail::concat(), and detail::position_t::lines_read.
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| const std::size_t detail::parse_error::byte |
byte index of the parse error
The byte index of the last read character in the input file.