Enum json::Error [] [src]

pub enum Error {
    UnexpectedCharacter {
        ch: char,
        line: usize,
        column: usize,
    },
    UnexpectedEndOfJson,
    FailedUtf8Parsing,
    WrongType(String),
}

Error type of this crate.

Note: Since 0.9.0 using JsonError is deprecated. Always use json::Error instead!

Variants

UnexpectedCharacter

Fields

ch: char
line: usize
column: usize
UnexpectedEndOfJsonFailedUtf8ParsingWrongType(String)

Methods

impl Error
[src]

fn wrong_type(expected: &str) -> Self

Trait Implementations

impl PartialEq for Error
[src]

fn eq(&self, __arg_0: &Error) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Error) -> bool

This method tests for !=.

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

The lower-level cause of this error, if any. Read more