Enum actix_storage::StorageError
source · pub enum StorageError {
MethodNotSupported,
SerializationError,
DeserializationError,
Custom(Box<dyn Error + Send>),
}
Expand description
Error type that will be returned from all fallible methods of actix_storage.
implementers should generally use Custom variant for their own errors.
Variants§
MethodNotSupported
Occurs when expiry methods are not available or the implementer doesn’t support the method.
SerializationError
Occurs when serialization is not possible, either because of wrong format specified or wrong type.
DeserializationError
Occurs when deserialization is not possible, either because of wrong format specified or wrong type.
Custom(Box<dyn Error + Send>)
Occurs when the underlying storage implementer faces error
Implementations§
Trait Implementations§
source§impl Debug for StorageError
impl Debug for StorageError
source§impl Display for StorageError
impl Display for StorageError
source§impl Error for StorageError
impl Error for StorageError
1.30.0 · 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 ResponseError for StorageError
impl ResponseError for StorageError
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