base_factory/
error.rs

1use cosmwasm_std::StdError;
2use cw_utils::PaymentError;
3use sg1::FeeError;
4use thiserror::Error;
5
6#[derive(Error, Debug, PartialEq)]
7pub enum ContractError {
8    #[error("{0}")]
9    Std(#[from] StdError),
10
11    #[error("{0}")]
12    Fee(#[from] FeeError),
13
14    #[error("{0}")]
15    Payment(#[from] PaymentError),
16
17    #[error("Unauthorized")]
18    Unauthorized {},
19
20    #[error("InvalidDenom")]
21    InvalidDenom {},
22
23    #[error("Invalid Creation Fee amount received to create the minter.")]
24    InvalidCreationFeeAmount {},
25
26    #[error("Factory frozen. Cannot make new minters.")]
27    Frozen {},
28
29    #[error("InvalidCollectionCodeId {code_id}")]
30    InvalidCollectionCodeId { code_id: u64 },
31}