![]() |
Argo
1.0
A C++ library for handling JSON.
|
Exception class for parser errors. More...
#include <json_parser_exception.hpp>
Public Member Functions | |
json_parser_exception (exception_type et, size_t byte_index) noexcept | |
json_parser_exception (exception_type et, char c, size_t byte_index) noexcept | |
json_parser_exception (exception_type et, const std::string &s, size_t byte_index) noexcept | |
json_parser_exception (exception_type et, size_t s, size_t byte_index) noexcept | |
size_t | get_byte_index () const noexcept |
Get the (approximate) byte index at which the error occurred. | |
![]() | |
json_exception (exception_type et) noexcept | |
json_exception (exception_type et, const char *json_type_name) noexcept | |
json_exception (exception_type et, const char *first_json_type_name, const char *second_json_type_name) noexcept | |
exception_type | get_type () const noexcept |
virtual const char * | what () const noexcept |
Exception class for parser errors.
Definition at line 33 of file json_parser_exception.hpp.
|
noexcept |
Constructor.
et | Type of the exeption. |
byte_index | Place in the input the error occurred. |
Definition at line 57 of file json_parser_exception.cpp.
|
noexcept |
Constructor for a character based parser exception.
et | Type of the exeption. |
c | The character that caused the exception. |
byte_index | Place in the input the error occurred. |
Definition at line 64 of file json_parser_exception.cpp.
|
noexcept |
Constructor for a parser exception where a string needs to be reported back (e.g. unexpected token).
et | Type of the exeption. |
s | The string related to the exception. |
byte_index | Place in the input the error occurred. |
Definition at line 71 of file json_parser_exception.cpp.
|
noexcept |
Constructor for a parser exception where a size_t needs to be reported back (e.g. too many characters in a string).
et | Type of the exeption. |
s | The size_t related to the exception. |
byte_index | Place in the input the error occurred. |
Definition at line 78 of file json_parser_exception.cpp.