Enum helvetia_client::Error[][src]

pub enum Error {
    InvalidUrl,
    InvalidToken,
    InvalidName(ParseError),
    TokenMismatch {
        source: Error,
    },
    SecretNotFound {
        source: Error,
    },
    SecretTooLarge {
        source: Error,
    },
    RequestError {
        msg: String,
        source: Error,
    },
    ClientError {
        msg: String,
        source: Error,
    },
    ServerError {
        msg: String,
        source: Error,
    },
    Bug {
        msg: String,
        source: Error,
    },
}

Errors for every problem that the Helvetia client may encounter.

Each enum variant should apply to a different error that the Helvetia client may encounter. Every variant has its own error message, which gives the explanation for the error.

Variants

InvalidUrl

Cannot use the provided URL as the root of the Helvetia API.

InvalidToken

Cannot use the provided token as an authentication header.

InvalidName(ParseError)

Cannot use the provided name as part of the request URL.

TokenMismatch

The stored token does not match the provided one.

Show fields

Fields of TokenMismatch

source: Error

The source of this error.

SecretNotFound

Could not find the provided secret.

Show fields

Fields of SecretNotFound

source: Error

The source of this error.

SecretTooLarge

The size of the secret surpassed a server threshold.

Show fields

Fields of SecretTooLarge

source: Error

The source of this error.

RequestError

An error occurred before the request could complete.

Show fields

Fields of RequestError

msg: String

The original error message.

source: Error

The source of this error.

ClientError

An unexpected client error (HTTP 4xx) occurred.

Show fields

Fields of ClientError

msg: String

The original error message.

source: Error

The source of this error.

ServerError

An unexpected server error (HTTP 5xx) occurred.

Show fields

Fields of ServerError

msg: String

The original error message.

source: Error

The source of this error.

Bug

Gasp! A bug in our client logic.

Show fields

Fields of Bug

msg: String

The original error message.

source: Error

The source of this error.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<InvalidHeaderValue> for Error[src]

impl From<ParseError> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

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

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

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

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

impl<T> Instrument 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.