Enum json_color::Error
[−]
pub enum Error { Syntax(ErrorCode, usize, usize), Io(Error), }
This type represents all possible errors that can occur when serializing or deserializing a value into JSON.
Variants
Syntax(ErrorCode, usize, usize)
The JSON value had some syntatic error.
Io(Error)
Some IO error occurred when serializing or deserializing a value.
Trait Implementations
impl From<Error> for Error
impl From<Error> for Error
impl Debug for Error
impl Error for Error
fn description(&self) -> &str
fn cause(&self) -> Option<&Error>
impl Error for Error
fn custom<T>(msg: T) -> Error where T: Into<String>
Raised when there is general error when deserializing a type.