pub enum Error {
Show 42 variants
InvalidUserCredentials,
UserEmailAlreadyExists(String),
UserEmailNotFound(String),
EmptySlugDisallowed,
FailedPasswordHashing(String),
FailedPasswordValidation(String),
InvalidToken(String),
ExpiredToken,
UnverifiedEmail(String),
InvalidDbRoleId(i32),
MissingPermissions(Vec<Permission>),
ApplicationNotReady,
ImageUploadsUnavailable,
PathRejection(PathRejection),
QueryParsingError(String),
QueryRejection(QueryRejection),
ExternalRequestError(Error),
JsonError(Error),
PathJsonError(Error<Error>),
UrlParseError(ParseError),
CsvError(Error),
XlsxError(XlsxError),
Base64DecodeError(DecodeError),
InvalidHttpHeaderValue(InvalidHeaderValue),
DbError(Error),
DbPoolError(PoolError),
DbCreatePoolError(CreatePoolError),
DbBuildError(BuildError),
IdNotFound(&'static str, i32),
ExternalIdNotFound(&'static str, String),
SlugNotFound(&'static str, String),
IdAlreadyExists(&'static str, i32),
SlugAlreadyExists(&'static str, String),
ExternalIdAlreadyExists(&'static str, String),
InvalidEntityRef(String),
ExplicitIdCreationDisallowed,
ExternalIdReferenceUnsupported(&'static str),
SlugReferenceUnsupported(&'static str),
ImageBackendMisconfigured(String),
ImageAlreadyExists(String),
IoError(Error),
MissingEntityRefPathParameter(&'static str),
}Variants§
InvalidUserCredentials
UserEmailAlreadyExists(String)
UserEmailNotFound(String)
EmptySlugDisallowed
FailedPasswordHashing(String)
FailedPasswordValidation(String)
InvalidToken(String)
ExpiredToken
UnverifiedEmail(String)
InvalidDbRoleId(i32)
MissingPermissions(Vec<Permission>)
ApplicationNotReady
PathRejection(PathRejection)
QueryParsingError(String)
QueryRejection(QueryRejection)
ExternalRequestError(Error)
JsonError(Error)
PathJsonError(Error<Error>)
UrlParseError(ParseError)
CsvError(Error)
XlsxError(XlsxError)
Base64DecodeError(DecodeError)
InvalidHttpHeaderValue(InvalidHeaderValue)
DbError(Error)
DbPoolError(PoolError)
DbCreatePoolError(CreatePoolError)
DbBuildError(BuildError)
IdNotFound(&'static str, i32)
ExternalIdNotFound(&'static str, String)
SlugNotFound(&'static str, String)
IdAlreadyExists(&'static str, i32)
SlugAlreadyExists(&'static str, String)
ExternalIdAlreadyExists(&'static str, String)
InvalidEntityRef(String)
ExplicitIdCreationDisallowed
ExternalIdReferenceUnsupported(&'static str)
SlugReferenceUnsupported(&'static str)
ImageBackendMisconfigured(String)
ImageAlreadyExists(String)
IoError(Error)
MissingEntityRefPathParameter(&'static str)
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<'_enum> From<&'_enum Error> for ApiErrorCode
impl<'_enum> From<&'_enum Error> for ApiErrorCode
source§fn from(val: &'_enum Error) -> ApiErrorCode
fn from(val: &'_enum Error) -> ApiErrorCode
Converts to this type from the input type.
source§impl From<BuildError<Error>> for Error
impl From<BuildError<Error>> for Error
source§fn from(source: BuildError) -> Self
fn from(source: BuildError) -> Self
Converts to this type from the input type.
source§impl From<CreatePoolError<ConfigError, Error>> for Error
impl From<CreatePoolError<ConfigError, Error>> for Error
source§fn from(source: CreatePoolError) -> Self
fn from(source: CreatePoolError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ApiErrorCode
impl From<Error> for ApiErrorCode
source§fn from(val: Error) -> ApiErrorCode
fn from(val: Error) -> ApiErrorCode
Converts to this type from the input type.
source§impl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<PathRejection> for Error
impl From<PathRejection> for Error
source§fn from(source: PathRejection) -> Self
fn from(source: PathRejection) -> Self
Converts to this type from the input type.
source§impl From<QueryRejection> for Error
impl From<QueryRejection> for Error
source§fn from(source: QueryRejection) -> Self
fn from(source: QueryRejection) -> Self
Converts to this type from the input type.