Enum sg721_base::ContractError
source · pub enum ContractError {
Show 14 variants
Std(StdError),
Payment(PaymentError),
Parse(ParseError),
Base(ContractError),
Unauthorized {},
InvalidCreationFee {},
Claimed {},
Expired {},
ApprovalNotFound {
spender: String,
},
InvalidRoyalties {},
DescriptionTooLong {},
InvalidStartTradingTime {},
CollectionInfoFrozen {},
RoyaltyShareIncreased {},
}Variants§
Std(StdError)
Payment(PaymentError)
Parse(ParseError)
Base(ContractError)
Fields
InvalidCreationFee
Fields
Claimed
Fields
Expired
Fields
ApprovalNotFound
InvalidRoyalties
Fields
DescriptionTooLong
Fields
InvalidStartTradingTime
Fields
CollectionInfoFrozen
Fields
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(source: ContractError) -> Self
fn from(source: ContractError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for ContractError
impl From<ParseError> for ContractError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<PaymentError> for ContractError
impl From<PaymentError> for ContractError
source§fn from(source: PaymentError) -> Self
fn from(source: PaymentError) -> Self
Converts to this type from the input type.