pub enum AuthError {
NoToken,
NoTokenSigner,
RefreshAuthorizerCall(ActixWebError),
RefreshAuthorizerDenied(ActixWebError),
TokenCreation(CreationError),
TokenParse(ParseError),
TokenValidation(ValidationError),
}
Expand description
Crate wide error type
if #[cfg(debug_assertions)]
is true
the wrapped errors in (Internal, RefreshAuthorizerDenied, TokenCreation, TokenParse, TokenValidation)
are in included in the error message.
Variants§
NoToken
NoTokenSigner
RefreshAuthorizerCall(ActixWebError)
RefreshAuthorizerDenied(ActixWebError)
TokenCreation(CreationError)
TokenParse(ParseError)
TokenValidation(ValidationError)
Trait Implementations§
source§impl Into<AuthError> for CreationError
impl Into<AuthError> for CreationError
source§impl Into<AuthError> for ParseError
impl Into<AuthError> for ParseError
source§impl Into<AuthError> for ValidationError
impl Into<AuthError> for ValidationError
source§impl PartialEq<AuthError> for AuthError
impl PartialEq<AuthError> for AuthError
source§impl ResponseError for AuthError
impl ResponseError for AuthError
source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
source§fn error_response(&self) -> HttpResponse<BoxBody>
fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read more