Enum plaid::api::error::Error [] [src]

pub enum Error {
    UnsuccessfulResponse(StatusCode),
    InvalidResponse(DecoderError),
    HTTP(Error),
    IO(IOError),
    InternalError,
}

Error

Represents possible errors returned from the API. P represents the product that the error is scoped for.

Variants

UnsuccessfulResponse

Represents bad HTTP status codes, or codes that we don't support.

InvalidResponse

Represents errors forwarded from rustc_serialize, usually indicating that the response returned something that could not be decoded.

HTTP

Represents an error forwarded from hyper, which means it is most likely HTTP (protocol, rather than status code) related.

IO

Returned for errors that are forwarded from std::io::Error

InternalError

This should happen very rarely, and indicates that something is most likely wrong with plaid::api rather than the end user.

Trait Implementations

impl Display for Error

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

impl StdError for Error

fn description(&self) -> &str

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

impl From<IOError> for Error

fn from(err: IOError) -> Error

impl From<Error> for Error

fn from(err: Error) -> Error

impl From<DecoderError> for Error

fn from(err: DecoderError) -> Error

impl From<EncoderError> for Error

fn from(_: EncoderError) -> Error

Derived Implementations

impl Debug for Error

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