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
Cannot use the provided URL as the root of the Helvetia API.
Cannot use the provided token as an authentication header.
InvalidName(ParseError)
Cannot use the provided name as part of the request URL.
The stored token does not match the provided one.
Show fields
Fields of TokenMismatch
source: Error
The source of this error.
Could not find the provided secret.
Show fields
Fields of SecretNotFound
source: Error
The source of this error.
The size of the secret surpassed a server threshold.
Show fields
Fields of SecretTooLarge
source: Error
The source of this error.
An error occurred before the request could complete.
Show fields
An unexpected client error (HTTP 4xx) occurred.
Show fields
An unexpected server error (HTTP 5xx) occurred.
Show fields
Gasp! A bug in our client logic.
Show fields
Trait Implementations
impl From<InvalidHeaderValue> for Error
[src]
impl From<InvalidHeaderValue> for Error
[src]fn from(_err: InvalidHeaderValue) -> Self
[src]
impl From<ParseError> for Error
[src]
impl From<ParseError> for Error
[src]fn from(source: ParseError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]