Enum weeb_api::Error [] [src]

pub enum Error {
    Json(JsonError),
    NoParamsSpecified,
    NoUploadSpecified,
    Reqwest(ReqwestError),
    ReqwestBad(Box<ReqwestResponse>),
    ReqwestInvalid(Box<ReqwestResponse>),
    ReqwestParse(ReqwestUrlError),
    ReqwestUnauthorized(Box<ReqwestResponse>),
}

An error type to compose a singular error enum between various dependencies' errors.

Variants

An error from the serde_json crate.

A potential reason for this is when there is an error deserializing a JSON response body.

An error indicating that no image params were supplied.

An error indicating that no upload params were supplied.

An error from the reqwest crate when it is enabled.

An error indicating a bad request when using reqwest.

An error indicating an invalid request when using reqwest.

An error indicating a parsing issue when using reqwest.

An error indicating an unathorized request when using reqwest.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl From<JsonError> for Error
[src]

[src]

Performs the conversion.

impl From<ReqwestError> for Error
[src]

[src]

Performs the conversion.

impl From<ReqwestUrlError> for Error
[src]

[src]

Performs the conversion.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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