Exception class for handling JSON parsing errors. More...
#include <xmmJson.hpp>
Public Types | |
enum | JsonErrorType { JsonErrorType::JsonMissingNode, JsonErrorType::JsonTypeError, JsonErrorType::JsonValueError } |
Type of Json parsing errors. More... | |
Public Member Functions | |
JsonException (JsonErrorType errorType, std::string nodename="") | |
Default Constructor. More... | |
JsonException (JsonException const &src, std::string nodename) | |
Constructor From exception message. More... | |
JsonException (JsonException const &src) | |
Copy Constructor. More... | |
JsonException & | operator= (JsonException const &src) |
Assigment. More... | |
virtual const char * | what () const throw () |
Get exception message. More... | |
Private Attributes | |
JsonErrorType | errorType_ |
Type of Json Parsing Error. More... | |
std::vector< std::string > | nodename_ |
Name of the Json Node presenting an error. More... | |
Exception class for handling JSON parsing errors.
|
strong |
|
inline |
Default Constructor.
errorType | type of parsing error |
nodename | name of the JSON node where the error occurred |
|
inlineexplicit |
Constructor From exception message.
src | Source Exception |
nodename | name of the |
|
inline |
Copy Constructor.
src | Source exception |
|
inline |
Assigment.
src | Source exception |
|
inlinevirtual |
Get exception message.
|
private |
Type of Json Parsing Error.
|
private |
Name of the Json Node presenting an error.