something_for_tests/
error.rs1use 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 #[error("Invalid zero amount")]
16 InvalidZeroAmount {},
17
18 #[error("Allowance is expired")]
19 Expired {},
20
21 #[error("No allowance for this account")]
22 NoAllowance {},
23
24 #[error("Minting cannot exceed the cap")]
25 CannotExceedCap {},
26}