[][src]Enum bodhi::error::QueryError

pub enum QueryError {
    RequestError {
        error: Error,
    },
    DeserializationError {
        error: Error,
    },
    SerializationError {
        error: Error,
    },
    BodhiError {
        error: BodhiError,
    },
    ServiceError {
        error: ServiceError,
    },
    UrlEncodedError {
        error: String,
    },
    InvalidDataError {
        error: String,
    },
}

This enum encapsulates the different ways in which bodhi queries can fail.

Variants

RequestError

This error represents a network-related issue that occurred within reqwest.

Fields of RequestError

error: Error

The inner error contains the error passed from reqwest.

DeserializationError

This error represents an issue with deserializing JSON request data. If this ever happens, it is almost certainly a bug in this crate.

Fields of DeserializationError

error: Error

The inner error contains the deserialization error message from serde_json.

SerializationError

This error represents an issue with serializing request data for POST requests. Since all data that can be supplied to POST request builders should be valid, this should never happen.

Fields of SerializationError

error: Error

The inner error contains the serialization error message from serde_json.

BodhiError

This error represents a successfully decoded bodhi server error message.

Fields of BodhiError

error: BodhiError

The inner BodhiError contains the deserialized JSON error response from the server.

ServiceError

This error represents an unexpected response or query error from the bodhi instance.

Fields of ServiceError

error: ServiceError

The inner ServiceError contains more information about the type of failure that occurred, for example, malformed responses or network-related issues.

UrlEncodedError

This error represents an unexpected issue when constructing a query URL, probably due to data that was not successfully deserialized into x-www-urlencoded format.

Fields of UrlEncodedError

error: String

This inner error contains the deserialization error.

InvalidDataError

This error represents some input data validation error.

Fields of InvalidDataError

error: String

This inner error contains a the reason why the data was considered invalid.

Trait Implementations

impl Debug for QueryError[src]

impl Display for QueryError[src]

impl Fail for QueryError[src]

impl From<Error> for QueryError[src]

impl From<Error> for QueryError[src]

impl From<Error> for QueryError[src]

impl From<ServiceError> for QueryError[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail
[src]

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

impl<T> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,