30 #ifndef PT_JSON_ERROR_H
31 #define PT_JSON_ERROR_H
33 #include <Pt/Json/Api.h>
44 class PT_JSON_API
JsonError :
public std::runtime_error
49 explicit JsonError(
const std::string& what);
68 SyntaxError(
const std::string& what, std::size_t line);
92 #endif // include guard
std::size_t line() const
Line count where the error in the document occured.
Definition: JsonError.h:81
~SyntaxError()
Destructor.
Definition: JsonError.h:76
~JsonError()
Destructor.
Definition: JsonError.h:57
Indicates JSON syntax errors.
Definition: JsonError.h:63
Exception during JSON processing.
Definition: JsonError.h:44