Enum serialize::json::ErrorCode [] [src]

pub enum ErrorCode {
    InvalidSyntax,
    InvalidNumber,
    EOFWhileParsingObject,
    EOFWhileParsingArray,
    EOFWhileParsingValue,
    EOFWhileParsingString,
    KeyMustBeAString,
    ExpectedColon,
    TrailingCharacters,
    TrailingComma,
    InvalidEscape,
    InvalidUnicodeCodePoint,
    LoneLeadingSurrogateInHexEscape,
    UnexpectedEndOfHexEscape,
    UnrecognizedHex,
    NotFourDigit,
    NotUtf8,
}
Unstable

: deprecated in favor of rustc-serialize on crates.io

The errors that can arise while parsing a JSON stream.

Variants

InvalidSyntax
Unstable

: deprecated in favor of rustc-serialize on crates.io

InvalidNumber
Unstable

: deprecated in favor of rustc-serialize on crates.io

EOFWhileParsingObject
Unstable

: deprecated in favor of rustc-serialize on crates.io

EOFWhileParsingArray
Unstable

: deprecated in favor of rustc-serialize on crates.io

EOFWhileParsingValue
Unstable

: deprecated in favor of rustc-serialize on crates.io

EOFWhileParsingString
Unstable

: deprecated in favor of rustc-serialize on crates.io

KeyMustBeAString
Unstable

: deprecated in favor of rustc-serialize on crates.io

ExpectedColon
Unstable

: deprecated in favor of rustc-serialize on crates.io

TrailingCharacters
Unstable

: deprecated in favor of rustc-serialize on crates.io

TrailingComma
Unstable

: deprecated in favor of rustc-serialize on crates.io

InvalidEscape
Unstable

: deprecated in favor of rustc-serialize on crates.io

InvalidUnicodeCodePoint
Unstable

: deprecated in favor of rustc-serialize on crates.io

LoneLeadingSurrogateInHexEscape
Unstable

: deprecated in favor of rustc-serialize on crates.io

UnexpectedEndOfHexEscape
Unstable

: deprecated in favor of rustc-serialize on crates.io

UnrecognizedHex
Unstable

: deprecated in favor of rustc-serialize on crates.io

NotFourDigit
Unstable

: deprecated in favor of rustc-serialize on crates.io

NotUtf8
Unstable

: deprecated in favor of rustc-serialize on crates.io

Trait Implementations

impl Display for ErrorCode

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

Derived Implementations

impl Debug for ErrorCode

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

impl PartialEq for ErrorCode

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

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

impl Copy for ErrorCode

impl Clone for ErrorCode

fn clone(&self) -> ErrorCode

fn clone_from(&mut self, source: &Self)