15 #ifndef RAPIDJSON_ERROR_ERROR_H_ 16 #define RAPIDJSON_ERROR_ERROR_H_ 18 #include "../rapidjson.h" 22 RAPIDJSON_DIAG_OFF(padded)
38 #ifndef RAPIDJSON_ERROR_CHARTYPE 39 #define RAPIDJSON_ERROR_CHARTYPE char 51 #ifndef RAPIDJSON_ERROR_STRING 52 #define RAPIDJSON_ERROR_STRING(x) x 161 #endif // RAPIDJSON_ERROR_ERROR_H_ ParseResult(ParseErrorCode code, size_t offset)
Constructor to set an error.
Miss fraction part in number.
bool operator!=(const ParseResult &that) const
bool operator==(const ParseResult &that) const
Missing a colon after a name of object member.
Missing a comma or ']' after an array element.
Missing a closing quotation mark in string.
bool(ParseResult::* BooleanType)() const
! Unspecified boolean type
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
void Clear()
Reset error code.
ParseErrorCode
Error code of parsing.
Incorrect hex digit after \u escape in string.
Missing a name for object member.
size_t Offset() const
Get the error offset, if IsError(), 0 otherwise.
Number too big to be stored in double.
bool operator!=(ParseErrorCode code) const
#define RAPIDJSON_ERROR_CHARTYPE
Character type of error messages.
bool IsError() const
Whether the result is an error.
friend bool operator==(ParseErrorCode code, const ParseResult &err)
void Set(ParseErrorCode code, size_t offset=0)
Update error code and offset.
Invalid encoding in string.
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Missing a comma or '}' after an object member.
friend bool operator!=(ParseErrorCode code, const ParseResult &err)
ParseErrorCode Code() const
Get the error code.
bool operator==(ParseErrorCode code) const
Invalid escape character in string.
The document root must not follow by other values.
Result of parsing (wraps ParseErrorCode)
ParseResult()
Default constructor, no error.
The surrogate pair in string is invalid.