[][src]Enum cdpay::APIError

pub enum APIError {
    MissingData,
    Error {
        code: u64,
        message: String,
    },
    Deserialization(Error),
    Http(Error),
    UnexpectedStatus(StatusCode),
    Tls(TlsError),
}

Error that might happen when communicating with payment API.

Variants

Error returned by the server as specified by the API.

Fields of Error

Parsing the responnse as json failed.

Underlying HTTP communication failed.

HTTP protocol returned unexpected status.

TLS communication failed.

Trait Implementations

impl From<APIError> for PaymentError
[src]

impl From<Error> for APIError
[src]

impl From<Error> for APIError
[src]

impl From<Error> for APIError
[src]

impl Debug for APIError
[src]

Auto Trait Implementations

impl Send for APIError

impl Sync for APIError

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T