Struct qt_core::q_json_parse_error::ParseError
source · pub struct ParseError(/* private fields */);
Expand description
This enum describes the type of error that occurred during the parsing of a JSON document.
C++ enum: QJsonParseError::ParseError
.
This enum describes the type of error that occurred during the parsing of a JSON document.
Implementations§
source§impl ParseError
impl ParseError
sourcepub const NoError: ParseError = _
pub const NoError: ParseError = _
No error occurred (C++ enum variant: NoError = 0
)
sourcepub const UnterminatedObject: ParseError = _
pub const UnterminatedObject: ParseError = _
An object is not correctly terminated with a closing curly bracket (C++ enum variant: UnterminatedObject = 1
)
sourcepub const MissingNameSeparator: ParseError = _
pub const MissingNameSeparator: ParseError = _
A comma separating different items is missing (C++ enum variant: MissingNameSeparator = 2
)
sourcepub const UnterminatedArray: ParseError = _
pub const UnterminatedArray: ParseError = _
The array is not correctly terminated with a closing square bracket (C++ enum variant: UnterminatedArray = 3
)
sourcepub const MissingValueSeparator: ParseError = _
pub const MissingValueSeparator: ParseError = _
A colon separating keys from values inside objects is missing (C++ enum variant: MissingValueSeparator = 4
)
sourcepub const IllegalValue: ParseError = _
pub const IllegalValue: ParseError = _
The value is illegal (C++ enum variant: IllegalValue = 5
)
sourcepub const TerminationByNumber: ParseError = _
pub const TerminationByNumber: ParseError = _
The input stream ended while parsing a number (C++ enum variant: TerminationByNumber = 6
)
sourcepub const IllegalNumber: ParseError = _
pub const IllegalNumber: ParseError = _
The number is not well formed (C++ enum variant: IllegalNumber = 7
)
sourcepub const IllegalEscapeSequence: ParseError = _
pub const IllegalEscapeSequence: ParseError = _
An illegal escape sequence occurred in the input (C++ enum variant: IllegalEscapeSequence = 8
)
sourcepub const IllegalUTF8String: ParseError = _
pub const IllegalUTF8String: ParseError = _
An illegal UTF8 sequence occurred in the input (C++ enum variant: IllegalUTF8String = 9
)
sourcepub const UnterminatedString: ParseError = _
pub const UnterminatedString: ParseError = _
A string wasn’t terminated with a quote (C++ enum variant: UnterminatedString = 10
)
sourcepub const MissingObject: ParseError = _
pub const MissingObject: ParseError = _
An object was expected but couldn’t be found (C++ enum variant: MissingObject = 11
)
sourcepub const DeepNesting: ParseError = _
pub const DeepNesting: ParseError = _
The JSON document is too deeply nested for the parser to parse it (C++ enum variant: DeepNesting = 12
)
sourcepub const DocumentTooLarge: ParseError = _
pub const DocumentTooLarge: ParseError = _
The JSON document is too large for the parser to parse it (C++ enum variant: DocumentTooLarge = 13
)
sourcepub const GarbageAtEnd: ParseError = _
pub const GarbageAtEnd: ParseError = _
The parsed document contains additional garbage characters at the end (C++ enum variant: GarbageAtEnd = 14
)
Trait Implementations§
source§impl Clone for ParseError
impl Clone for ParseError
source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ParseError
impl Debug for ParseError
source§impl From<ParseError> for c_int
impl From<ParseError> for c_int
source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
source§impl From<i32> for ParseError
impl From<i32> for ParseError
source§impl PartialEq for ParseError
impl PartialEq for ParseError
source§fn eq(&self, other: &ParseError) -> bool
fn eq(&self, other: &ParseError) -> bool
self
and other
values to be equal, and is used
by ==
.