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