komple_framework_attribute_permission/
error.rs1use cosmwasm_std::StdError;
2use std::num::ParseIntError;
3use thiserror::Error;
4
5#[derive(Error, Debug)]
6pub enum ContractError {
7 #[error("{0}")]
8 Std(#[from] StdError),
9
10 #[error("Metadata not found")]
11 MetadataNotFound {},
12
13 #[error("Attribute not found")]
14 AttributeNotFound {},
15
16 #[error("Attribute found")]
17 AttributeFound {},
18
19 #[error("Attribute not equal")]
20 AttributeNotEqual {},
21
22 #[error("Attribute equal")]
23 AttributeEqual {},
24
25 #[error("Attribute is greater than")]
26 AttributeGreaterThan {},
27
28 #[error("Attribute is greater than or equal")]
29 AttributeGreaterThanOrEqual {},
30
31 #[error("Attribute is less than")]
32 AttributeLessThan {},
33
34 #[error("Attribute is less than or equal")]
35 AttributeLessThanOrEqual {},
36
37 #[error("Attribute type mismatch")]
38 AttributeTypeMismatch {},
39
40 #[error("Unauthorized")]
41 Unauthorized {},
42
43 #[error("{0}")]
44 ParseInt(#[from] ParseIntError),
45}