Enum braintree::error::Error [] [src]

pub enum Error {
    Api(ApiErrorResponse),
    Http(Error),
    TestOperationInProduction,
}

An enum describing an error returned as a result of an API call.

Variants

Braintree's servers reported an error with your request. This usually means that your authorization was incorrect, you're missing required fields, or some validation step failed. Consult the error message for more details about what went wrong.

An HTTP-level error occurred in the underlying client. This usually means that an error occurred with the raw network call, e.g. no internet access.

A test operation, such as forcing a transaction into a settlement status, was attempted in a production environment.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Box<Read>> for Error
[src]

Performs the conversion.