Enum strason::parser::ErrorType [−][src]
pub enum ErrorType { Other(String), MissingField(&'static str), UnknownField(String), ExpectedString, UnexpectedEOF, UnexpectedCharacter(char), MalformedNumber, MalformedEscape, UnknownIdent, Unicode(ParseIntError), UnpairedSurrogate, Io(Error), }
The type of a Json parsing error
Variants
Other(String)
Syntax error interpreting Json
MissingField(&'static str)
Missing field interpreting Json
UnknownField(String)
Unknown field
ExpectedString
Expected a string, got something else
UnexpectedEOF
end-of-file reached before json was complete
UnexpectedCharacter(char)
bad character encountered when parsing some data
MalformedNumber
a number contained a bad or misplaced character
MalformedEscape
an escape sequence was invalid
UnknownIdent
an identifier was given that has no meaning
Unicode(ParseIntError)
a unicode codepoint constant was malformed
UnpairedSurrogate
UTF-16 sequence with unpaired surrogate
Io(Error)
some sort of IO error
Trait Implementations
impl Debug for ErrorType
[src]
impl Debug for ErrorType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<ParseIntError> for ErrorType
[src]
impl From<ParseIntError> for ErrorType
fn from(e: ParseIntError) -> ErrorType
[src]
fn from(e: ParseIntError) -> ErrorType
Performs the conversion.
impl From<Error> for ErrorType
[src]
impl From<Error> for ErrorType
impl From<ErrorType> for Error
[src]
impl From<ErrorType> for Error