Character type of error messages.
The default character type is char
. On Windows, user can define this macro as TCHAR
for supporting both unicode/non-unicode settings.
Definition at line 39 of file error.h.
◆ RAPIDJSON_ERROR_STRING #define RAPIDJSON_ERROR_STRING ( x ) xMacro for converting string literial to RAPIDJSON_ERROR_CHARTYPE[].
By default this conversion macro does nothing. On Windows, user can define this macro as _T(x)
for supporting both unicode/non-unicode settings.
Definition at line 52 of file error.h.
◆ RAPIDJSON_PARSE_ERROR #define RAPIDJSON_PARSE_ERROR ( parseErrorCode, offset )(Internal) macro to indicate and handle a parse error.
Invokes RAPIDJSON_PARSE_ERROR_NORETURN and stops the parsing.
Definition at line 118 of file reader.h.
◆ RAPIDJSON_PARSE_ERROR_NORETURN #define RAPIDJSON_PARSE_ERROR_NORETURN ( parseErrorCode, offset ) Value:SetParseError(parseErrorCode,
offset); \
RAPIDJSON_MULTILINEMACRO_END
#define RAPIDJSON_ASSERT(x)
Assertion.
Macro to indicate a parse error.
This macros can be used as a customization point for the internal error handling mechanism of RapidJSON.
A common usage model is to throw an exception instead of requiring the caller to explicitly check the rapidjson::GenericReader::Parse's return value:
#define RAPIDJSON_PARSE_ERROR_NORETURN(parseErrorCode,offset) \
throw ParseException(parseErrorCode, #parseErrorCode, offset)
#include <stdexcept>
#include "rapidjson/error/error.h"
};
#include "rapidjson/reader.h"
ParseErrorCode
Error code of parsing.
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
Result of parsing (wraps ParseErrorCode)
Definition at line 99 of file reader.h.
◆ GetParseErrorFuncFunction pointer type of GetParseError().
This is the prototype for GetParseError_X()
, where X
is a locale. User can dynamically change locale in runtime, e.g.:
#define RAPIDJSON_ERROR_CHARTYPE
Character type of error messages.
const char * GetParseError_En(ParseErrorCode parseErrorCode)
Maps error code of parsing into error message.
const char *(* GetParseErrorFunc)(ParseErrorCode)
Function pointer type of GetParseError().
Definition at line 147 of file error.h.
◆ ParseErrorCodeError code of parsing.
No error.
kParseErrorDocumentEmptyThe document is empty.
kParseErrorDocumentRootNotSingularThe document root must not follow by other values.
kParseErrorValueInvalidInvalid value.
kParseErrorObjectMissNameMissing a name for object member.
kParseErrorObjectMissColonMissing a colon after a name of object member.
kParseErrorObjectMissCommaOrCurlyBracketMissing a comma or '}' after an object member.
kParseErrorArrayMissCommaOrSquareBracketMissing a comma or ']' after an array element.
kParseErrorStringUnicodeEscapeInvalidHexIncorrect hex digit after \u escape in string.
kParseErrorStringUnicodeSurrogateInvalidThe surrogate pair in string is invalid.
kParseErrorStringEscapeInvalidInvalid escape character in string.
kParseErrorStringMissQuotationMarkMissing a closing quotation mark in string.
kParseErrorStringInvalidEncodingInvalid encoding in string.
kParseErrorNumberTooBigNumber too big to be stored in double.
kParseErrorNumberMissFractionMiss fraction part in number.
kParseErrorNumberMissExponentMiss exponent in number.
kParseErrorTerminationParsing was terminated.
kParseErrorUnspecificSyntaxErrorUnspecific syntax error.
Definition at line 64 of file error.h.
◆ PointerParseErrorCodeError code of parsing.
The parse is successful.
kPointerParseErrorTokenMustBeginWithSolidusA token must begin with a '/'.
kPointerParseErrorInvalidEscapeInvalid escape.
kPointerParseErrorInvalidPercentEncodingInvalid percent encoding in URI fragment.
kPointerParseErrorCharacterMustPercentEncodeA character must percent encoded in URI fragment.
Definition at line 39 of file pointer.h.
◆ GetParseError_En()Maps error code of parsing into error message.
Definition at line 36 of file en.h.
References rapidjson::kParseErrorArrayMissCommaOrSquareBracket, rapidjson::kParseErrorDocumentEmpty, rapidjson::kParseErrorDocumentRootNotSingular, rapidjson::kParseErrorNone, rapidjson::kParseErrorNumberMissExponent, rapidjson::kParseErrorNumberMissFraction, rapidjson::kParseErrorNumberTooBig, rapidjson::kParseErrorObjectMissColon, rapidjson::kParseErrorObjectMissCommaOrCurlyBracket, rapidjson::kParseErrorObjectMissName, rapidjson::kParseErrorStringEscapeInvalid, rapidjson::kParseErrorStringInvalidEncoding, rapidjson::kParseErrorStringMissQuotationMark, rapidjson::kParseErrorStringUnicodeEscapeInvalidHex, rapidjson::kParseErrorStringUnicodeSurrogateInvalid, rapidjson::kParseErrorTermination, rapidjson::kParseErrorUnspecificSyntaxError, rapidjson::kParseErrorValueInvalid, and RAPIDJSON_ERROR_STRING.
Referenced by CSatInfoServiceParser::GetConnectionString(), and CJson_Document::GetReadError().
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4