pub enum ContractError {
Show 35 variants
Std(StdError),
Payment(PaymentError),
ParseError(ParseError),
Fee(FeeError),
Unauthorized(String),
UpdateStatus {},
InvalidReplyID {},
NotEnoughFunds {},
TooManyCoins {},
IncorrectPaymentAmount(Coin, Coin),
InvalidNumTokens {
max: u32,
min: u32,
},
SoldOut {},
NotSoldOut {},
InvalidDenom {
expected: String,
got: String,
},
InsufficientMintPrice {
expected: u128,
got: u128,
},
InsufficientWhitelistMintPrice {
expected: u128,
got: u128,
},
UpdatedMintPriceTooHigh {
allowed: u128,
updated: u128,
},
DiscountUpdateTooSoon {},
DiscountRemovalTooSoon {},
InvalidAddress {
addr: String,
},
InvalidTokenId {},
AlreadyStarted {},
BeforeGenesisTime {},
WhitelistAlreadyStarted {},
InvalidStartTime(Timestamp, Timestamp),
InvalidStartTradingTime(Timestamp, Timestamp),
InstantiateSg721Error {},
InvalidBaseTokenURI {},
NotWhitelisted {
addr: String,
},
BeforeMintStartTime {},
InvalidPerAddressLimit {
max: u32,
min: u32,
got: u32,
},
MaxPerAddressLimitExceeded {},
TokenIdAlreadySold {
token_id: u32,
},
NoEnvTransactionIndex {},
CheckedMultiplyFractionError {},
}
Variants§
Std(StdError)
Payment(PaymentError)
ParseError(ParseError)
Fee(FeeError)
UpdateStatus
InvalidReplyID
NotEnoughFunds
TooManyCoins
IncorrectPaymentAmount(Coin, Coin)
InvalidNumTokens
SoldOut
NotSoldOut
InvalidDenom
InsufficientMintPrice
InsufficientWhitelistMintPrice
UpdatedMintPriceTooHigh
DiscountUpdateTooSoon
DiscountRemovalTooSoon
InvalidAddress
InvalidTokenId
AlreadyStarted
BeforeGenesisTime
WhitelistAlreadyStarted
InvalidStartTime(Timestamp, Timestamp)
InvalidStartTradingTime(Timestamp, Timestamp)
InstantiateSg721Error
InvalidBaseTokenURI
NotWhitelisted
BeforeMintStartTime
InvalidPerAddressLimit
MaxPerAddressLimitExceeded
TokenIdAlreadySold
NoEnvTransactionIndex
CheckedMultiplyFractionError
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<FeeError> for ContractError
impl From<FeeError> for ContractError
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.
source§impl From<StdError> for ContractError
impl From<StdError> for ContractError
source§impl PartialEq for ContractError
impl PartialEq 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 ==
.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