Skip to content

Commit

Permalink
feat(storage): define errors related to bucket limits
Browse files Browse the repository at this point in the history
  • Loading branch information
amimart committed Mar 3, 2023
1 parent ada8714 commit 4c6587d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions contracts/cw-storage/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,16 @@ pub enum ContractError {
pub enum BucketError {
#[error("Name of bucket could not be empty")]
EmptyName,

#[error("Object max size exceeded")]
ObjectMaxSizeLimitExceeded {},

#[error("Maximum objects number exceeded")]
MaxObjectsLimitExceeded {},

#[error("Maximum total size exceeded")]
BucketSizeLimitExceeded {},

#[error("Maximum object pins number exceeded")]
MaxObjectPinsLimitExceeded {},
}

0 comments on commit 4c6587d

Please sign in to comment.