pub enum ContractError {
Show 27 variants
Std(StdError),
Unauthorized {},
InvalidInstantiateMsg {},
MintLocked {},
BurnLocked {},
TransferLocked {},
SendLocked {},
InvalidPerAddressLimit {},
TokenLimitReached {},
TokenNotFound {},
InvalidMaxTokenLimit {},
InvalidStartTime {},
MintingNotStarted {},
AlreadyStarted {},
DescriptionTooLong {},
Claimed {},
Expired {},
ApprovalNotFound {
spender: String,
},
InvalidReplyID {},
MetadataContractNotFound {},
ContractsInstantiateError {},
IpfsNotFound {},
InvalidCollectionMetadataType {},
CustomError {
val: String,
},
Util(UtilError),
SharedError(SharedError),
SemVer(String),
}
Variants§
Std(StdError)
Fields
InvalidInstantiateMsg
Fields
MintLocked
Fields
BurnLocked
Fields
TransferLocked
Fields
SendLocked
Fields
InvalidPerAddressLimit
Fields
TokenLimitReached
Fields
TokenNotFound
Fields
InvalidMaxTokenLimit
Fields
InvalidStartTime
Fields
MintingNotStarted
Fields
AlreadyStarted
Fields
DescriptionTooLong
Fields
Claimed
Fields
Expired
Fields
ApprovalNotFound
InvalidReplyID
Fields
MetadataContractNotFound
Fields
ContractsInstantiateError
Fields
IpfsNotFound
Fields
InvalidCollectionMetadataType
Fields
CustomError
Util(UtilError)
SemVer(String)
Trait Implementations§
source§impl Debug for ContractError
impl Debug for ContractError
source§impl Display for ContractError
impl Display for ContractError
source§impl Error for ContractError
impl Error for ContractError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ContractError> for ContractError
impl From<ContractError> for ContractError
source§fn from(err: Cw721ContractError) -> ContractError
fn from(err: Cw721ContractError) -> ContractError
Converts to this type from the input type.
source§impl From<Error> for ContractError
impl From<Error> for ContractError
source§fn from(source: SharedError) -> Self
fn from(source: SharedError) -> Self
Converts to this type from the input type.
source§impl From<StdError> for ContractError
impl From<StdError> for ContractError
source§impl From<UtilError> for ContractError
impl From<UtilError> for ContractError
source§impl PartialEq<ContractError> for ContractError
impl PartialEq<ContractError> for ContractError
source§fn eq(&self, other: &ContractError) -> bool
fn eq(&self, other: &ContractError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.