Enum edjx::error::StorageError [−][src]
#[non_exhaustive]
pub enum StorageError {
EmptyContent,
MissingFileName,
DeletedBucketID,
MissingBucketID,
InternalError,
ContentNotFound,
UnAuthorized,
MissingAttributes,
ContentDeleted,
InvalidAttributes(Error),
ResourceLimit,
}
Expand description
Enums describing the errors that correspond to storage modules.
This is returned by methods similar to
crate::storage::put()
for error scenarios.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Content is required.
File name is required.
The bucket id is deleted.
Bucket ID is required.
An internal error occured while performing the request.
The content or bucket wasn’t found on the store.
The credentials or policies entered are incorrect. Request could not be performed.
Attributes are required.
The required content does not exist or has been deleted.
InvalidAttributes(Error)
The attributes are invalid.
Tuple Fields of InvalidAttributes
0: Error