Enum biscuit::errors::Error [] [src]

pub enum Error {
    GenericError(String),
    ValidationError(ValidationError),
    JsonError(Error),
    DecodeBase64(Error),
    Utf8(Utf8Error),
    IOError(Error),
    UriParseError(ParseError),
    WrongKeyType {
        expected: String,
        actual: String,
    },
    UnspecifiedCryptographicError,
    UnsupportedOperation,
}

All the errors we can encounter while signing/verifying tokens and a couple of custom one for when the token we are trying to verify is invalid

Variants

A generic error which is described by the contained string

Error returned from failed token validation

Error during the serialization or deserialization of tokens

Error during base64 encoding or decoding

Error when decoding bytes to UTF8 string

Errors related to IO

Errors related to URI parsing

Wrong key type was provided for the cryptographic operation

Fields of WrongKeyType

Expected type of key

Actual type of key

An unknown cryptographic error

An unsupported or invalid operation

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl From<String> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Utf8Error> for Error
[src]

Performs the conversion.

impl From<ValidationError> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<ParseError> for Error
[src]

Performs the conversion.

impl From<Unspecified> for Error
[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

Performs the conversion.

impl Error for Error
[src]

A short description of the error. Read more

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

impl Display for Error
[src]

Formats the value using the given formatter. Read more