Enum ParseErrorCode

Description

Error code of parsing.

See
GenericReader::Parse, GenericReader::GetParseErrorCode

Values

kParseErrorNone = 0

No error.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorDocumentEmpty

The document is empty.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorDocumentRootNotSingular

The document root must not follow by other values.

Mentioned in:

Dom / Parsing {#Parsing}

Dom / Parse Error {#ParseError}

kParseErrorValueInvalid

Invalid value.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorObjectMissName

Missing a name for object member.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorObjectMissColon

Missing a colon after a name of object member.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorObjectMissCommaOrCurlyBracket

Missing a comma or '}' after an object member.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorArrayMissCommaOrSquareBracket

Missing a comma or ']' after an array element.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorStringUnicodeEscapeInvalidHex

Incorrect hex digit after \u escape in string.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorStringUnicodeSurrogateInvalid

The surrogate pair in string is invalid.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorStringEscapeInvalid

Invalid escape character in string.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorStringMissQuotationMark

Missing a closing quotation mark in string.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorStringInvalidEncoding

Invalid encoding in string.

Mentioned in:

Encoding / ASCII {#ASCII}

Dom / Parse Error {#ParseError}

Dom / Transcoding and Validation {#TranscodingAndValidation}

Faq / Unicode

kParseErrorNumberTooBig

Number too big to be stored in double.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorNumberMissFraction

Miss fraction part in number.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorNumberMissExponent

Miss exponent in number.

Mentioned in:

Dom / Parse Error {#ParseError}

kParseErrorTermination

Parsing was terminated.

Mentioned in:

Sax / Handler {#Handler}

Sax / Parsing JSON to Custom Data Structure {#CustomDataStructure}

Schema / DOM parsing {#DOM}

Examples / schemavalidator.cpp

kParseErrorUnspecificSyntaxError

Unspecific syntax error.

Mentioned in

Source

Lines 64-90 in include/rapidjson/error/error.h.

enum ParseErrorCode {
    kParseErrorNone = 0,                        //!< No error.

    kParseErrorDocumentEmpty,                   //!< The document is empty.
    kParseErrorDocumentRootNotSingular,         //!< The document root must not follow by other values.

    kParseErrorValueInvalid,                    //!< Invalid value.

    kParseErrorObjectMissName,                  //!< Missing a name for object member.
    kParseErrorObjectMissColon,                 //!< Missing a colon after a name of object member.
    kParseErrorObjectMissCommaOrCurlyBracket,   //!< Missing a comma or '}' after an object member.

    kParseErrorArrayMissCommaOrSquareBracket,   //!< Missing a comma or ']' after an array element.

    kParseErrorStringUnicodeEscapeInvalidHex,   //!< Incorrect hex digit after \\u escape in string.
    kParseErrorStringUnicodeSurrogateInvalid,   //!< The surrogate pair in string is invalid.
    kParseErrorStringEscapeInvalid,             //!< Invalid escape character in string.
    kParseErrorStringMissQuotationMark,         //!< Missing a closing quotation mark in string.
    kParseErrorStringInvalidEncoding,           //!< Invalid encoding in string.

    kParseErrorNumberTooBig,                    //!< Number too big to be stored in double.
    kParseErrorNumberMissFraction,              //!< Miss fraction part in number.
    kParseErrorNumberMissExponent,              //!< Miss exponent in number.

    kParseErrorTermination,                     //!< Parsing was terminated.
    kParseErrorUnspecificSyntaxError            //!< Unspecific syntax error.
};





Add Discussion as Guest

Log in