exception indicating a parse error
More...
|
| 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 More...
|
| |
|
template<typename BasicJsonType > |
| static parse_error | create (int id_, std::size_t byte_, const std::string &what_arg, const BasicJsonType &context) |
| |
|
| const std::size_t | byte |
| | byte index of the parse error More...
|
| |
|
const int | id |
| | the id of the exception
|
| |
|
|
const char * | what () const noexcept override |
| | returns the explanatory string
|
| |
|
| __attribute__ ((__nonnull__(3))) exception(int id_ |
| |
|
const char | m (what_arg) |
| |
|
template<typename BasicJsonType > |
| static std::string | diagnostics (const BasicJsonType &leaf_element) |
| |
|
static std::string | name (const std::string &ename, int id_) |
| |
|
const char * | what_arg: id(id_) |
| |
◆ create()
template<typename BasicJsonType >
| static parse_error nlohmann::detail::parse_error::create |
( |
int |
id_, |
|
|
const position_t & |
pos, |
|
|
const std::string & |
what_arg, |
|
|
const BasicJsonType & |
context |
|
) |
| |
|
static |
◆ byte
| const std::size_t nlohmann::detail::parse_error::byte |
byte index of the parse error
The byte index of the last read character in the input file.
- Note
- For an input with n bytes, 1 is the index of the first character and n+1 is the index of the terminating null byte or the end of file. This also holds true when reading a byte vector (CBOR or MessagePack).