1use cosmwasm_std::StdError;
2use thiserror::Error;
3
4#[derive(Error, Debug, PartialEq)]
5pub enum ContractError {
6 #[error("{0}")]
7 Std(#[from] StdError),
8
9 #[error("Unauthorized")]
10 Unauthorized {},
11
12 #[error("Cannot set to own account")]
13 CannotSetOwnAccount {},
14
15 #[deprecated(note = "Unused. All zero amount checks have been removed")]
17 #[error("Invalid zero amount")]
18 InvalidZeroAmount {},
19
20 #[error("Allowance is expired")]
21 Expired {},
22
23 #[error("No allowance for this account")]
24 NoAllowance {},
25
26 #[error("Minting cannot exceed the cap")]
27 CannotExceedCap {},
28
29 #[error("Logo binary data exceeds 5KB limit")]
30 LogoTooBig {},
31
32 #[error("Invalid xml preamble for SVG")]
33 InvalidXmlPreamble {},
34
35 #[error("Invalid png header")]
36 InvalidPngHeader {},
37
38 #[error("Invalid expiration value")]
39 InvalidExpiration {},
40
41 #[error("Duplicate initial balance addresses")]
42 DuplicateInitialBalanceAddresses {},
43}