Enum jsonwebtoken::errors::Error [] [src]

pub enum Error {
    EncodeJSON(EncoderError),
    DecodeBase64(FromBase64Error),
    DecodeJSON(DecoderError),
    Utf8(FromUtf8Error),
    InvalidToken,
    InvalidSignature,
    WrongAlgorithmHeader,
}

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

EncodeJSON(EncoderError)DecodeBase64(FromBase64Error)DecodeJSON(DecoderError)Utf8(FromUtf8Error)InvalidTokenInvalidSignatureWrongAlgorithmHeader

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<EncoderError> for Error
[src]

fn from(f: EncoderError) -> Error

Performs the conversion.

impl From<FromBase64Error> for Error
[src]

fn from(f: FromBase64Error) -> Error

Performs the conversion.

impl From<DecoderError> for Error
[src]

fn from(f: DecoderError) -> Error

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

fn from(f: FromUtf8Error) -> Error

Performs the conversion.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

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

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.