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(StatusCode)
Represents bad HTTP status codes, or codes that we don't support.
InvalidResponse(DecoderError)
Represents errors forwarded from rustc_serialize
, usually indicating
that the response returned something that could not be decoded.
HTTP(Error)
Represents an error forwarded from hyper
, which means it is most
likely HTTP (protocol, rather than status code) related.
IO(IOError)
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 Debug for Error
[src]
impl Display for Error
[src]
impl StdError 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
impl From<IOError> for Error
[src]
impl From<Error> for Error
[src]
impl From<DecoderError> for Error
[src]
fn from(err: DecoderError) -> Error
Performs the conversion.
impl From<EncoderError> for Error
[src]
fn from(_: EncoderError) -> Error
Performs the conversion.