pub enum ContractError {
Show 22 variants
Std(StdError),
Unauthorized(String),
InvalidReplyID {},
NotEnoughFunds {},
TooManyCoins {},
IncorrectPaymentAmount(Coin, Coin),
InvalidNumTokens {
max: u32,
min: u32,
},
SoldOut {},
InvalidDenom {
expected: String,
got: String,
},
InsufficientMintPrice {
expected: u128,
got: u128,
},
InvalidAddress {
addr: String,
},
InvalidTokenId {},
AlreadyStarted {},
InvalidStartTime(Timestamp, Timestamp),
InstantiateAn721Error {},
InvalidBaseTokenURI {},
BeforeMintStartTime {},
InvalidPerAddressLimit {
max: u32,
min: u32,
got: u32,
},
MaxPerAddressLimitExceeded {},
TokenIdAlreadySold {
token_id: u32,
},
ZeroBalance {},
Payment(PaymentError),
}Variants§
Std(StdError)
InvalidReplyID
NotEnoughFunds
TooManyCoins
IncorrectPaymentAmount(Coin, Coin)
InvalidNumTokens
SoldOut
InvalidDenom
InsufficientMintPrice
InvalidAddress
InvalidTokenId
AlreadyStarted
InvalidStartTime(Timestamp, Timestamp)
InstantiateAn721Error
InvalidBaseTokenURI
BeforeMintStartTime
InvalidPerAddressLimit
MaxPerAddressLimitExceeded
TokenIdAlreadySold
ZeroBalance
Payment(PaymentError)
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)>
Returns 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<ParseError> for ContractError
impl From<ParseError> for ContractError
Source§fn from(_err: ParseError) -> ContractError
fn from(_err: ParseError) -> ContractError
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.
Source§impl From<StdError> for ContractError
impl From<StdError> for ContractError
Source§impl PartialEq for ContractError
impl PartialEq for ContractError
impl StructuralPartialEq for ContractError
Auto Trait Implementations§
impl Freeze for ContractError
impl RefUnwindSafe for ContractError
impl Send for ContractError
impl Sync for ContractError
impl Unpin for ContractError
impl UnwindSafe for ContractError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more