pub enum ContractError {
Show 206 variants
Std(StdError),
Hex(FromHexError),
Payment(PaymentError),
ParseReplyError(ParseReplyError),
Unauthorized {},
UnpublishedCodeID {},
UnpublishedVersion {},
ContractLocked {},
UnidentifiedMsgID {},
UnmetCondition {},
InvalidOrigin {},
InvalidSender {},
RewardTooLow {},
IncompleteUnbondingPeriod {},
LockedNFT {},
UserNotFound {},
ProcessNotFound {},
OrderedChannel {},
InvalidVersion {
actual: String,
expected: String,
},
CrossChainComponentsCurrentlyDisabled {},
TokenInfoLenMissmatch {},
CantCloseChannel {},
Paused {},
EmptyOptional {},
EmptyClassId {},
NoTokens {},
UnrecognisedReplyId {},
ImbalancedTokenInfo {},
UnsupportedNFT {},
UnsupportedReturnType {},
UnsupportedProtocol {},
AlreadyUnbonded {},
NFTNotFound {},
PriceNotSet {},
InvalidPrimitive {},
StillBonded {},
ParseBoolError {},
NoResponseElementNeeded {},
ResponseElementRequired {},
InsufficientBondedTime {},
LockTimeTooShort {},
LockTimeTooLong {},
InvalidWeight {},
NoResults {},
NotEnoughTokens {},
MissingParameters {},
OnlyOneSourceAllowed {},
IllegalTokenName {},
IllegalTokenSymbol {},
Refilling {},
WithdrawalLimitExceeded {},
CoinNotFound {},
NotInRefillMode {},
NotEnoughResults {},
ReachedRecipientLimit {},
MinterBlacklisted {},
EmptyRecipientsList {},
AmountExceededHundredPrecent {},
InvalidAddress {},
ExpirationInPast {},
ExecuteError {},
UnspecifiedWithdrawalFrequency {},
ExpirationNotSpecified {},
CannotOverwriteHeldFunds {},
ContractAddressNotInAddressList {},
ModuleNotUnique {},
InvalidRate {},
InsufficientFunds {},
NoPendingPayments {},
NoReceivingAddress {},
TemporarilyDisabled {},
AccountNotFound {},
ModuleDiscriptionTooLong {
msg: String,
},
SymbolInUse {},
ExceedsMaxAllowedCoins {},
NoLockedFunds {},
FundsAreLocked {},
InvalidTokenNameLength {
msg: String,
},
TokenIsArchived {},
AuctionDoesNotExist {},
SaleDoesNotExist {},
AuctionNotStarted {},
AuctionEnded {},
SaleNotStarted {},
SaleEnded {},
SaleNotOpen {},
SaleExpired {},
SaleExecuted {},
SaleCancelled {},
NoTargetADOs {},
TokenOwnerCannotBid {},
TokenOwnerCannotBuy {},
BidSmallerThanHighestBid {},
Overflow {},
Underflow {},
CannotWithdrawHighestBid {},
WithdrawalIsEmpty {},
AuctionAlreadyStarted {},
StartTimeAfterEndTime {},
StartTimeInThePast {
current_time: u64,
current_block: u64,
},
OutOfNFTs {},
HighestBidderCannotOutBid {},
InvalidFunds {
msg: String,
},
InvalidADOVersion {
msg: Option<String>,
},
InvalidCodeID {
msg: Option<String>,
},
InvalidADOType {
msg: Option<String>,
},
AuctionAlreadyClaimed {},
SaleAlreadyConducted {},
AuctionNotEnded {},
AuctionCancelled {},
ExpirationMustNotBeNever {},
ExpirationsMustBeOfSameType {},
MoreThanOneCoin {},
InvalidReplyId {},
ParsingError {
err: String,
},
MissingRequiredMessageData {},
CannotMigrate {
previous_contract: String,
},
NestedAndromedaMsg {},
UnexpectedExternalRate {},
DuplicateCoinDenoms {},
DuplicateRecipient {},
DuplicateContract {},
CannotSetOwnAccount {},
InvalidZeroAmount {},
Expired {},
NoAllowance {},
CannotExceedCap {},
LogoTooBig {},
InvalidXmlPreamble {},
InvalidPngHeader {},
Instantiate2AddressMismatch {
expected: Addr,
received: Addr,
},
DuplicateInitialBalanceAddresses {},
InvalidModule {
msg: Option<String>,
},
UnsupportedOperation {},
IncompatibleModules {
msg: String,
},
ModuleDoesNotExist {},
Claimed {},
ApprovalNotFound {
spender: String,
},
BidAlreadyPlaced {},
BidLowerThanCurrent {},
BidNotExpired {},
TransferAgreementExists {},
CannotDoubleWrapToken {},
UnwrappingDisabled {},
TokenNotWrappedByThisContract {},
InvalidMetadata {},
InvalidRecipientType {
msg: String,
},
InvalidTokensToWithdraw {
msg: String,
},
ModuleImmutable {},
GeneratorNotSpecified {},
TooManyAppComponents {},
InvalidLtvRatio {
msg: String,
},
NameAlreadyTaken {},
NoOngoingSale {},
PurchaseLimitReached {},
SaleNotEnded {},
MinSalesExceeded {},
LimitMustNotBeZero {},
SaleStarted {},
NoPurchases {},
CannotMintAfterSaleConducted {},
NotImplemented {
msg: Option<String>,
},
InvalidStrategy {
strategy: String,
},
InvalidQuery {},
InvalidWithdrawal {
msg: Option<String>,
},
StageExpired {
stage: u8,
expiration: Expiration,
},
StageNotExpired {
stage: u8,
expiration: Expiration,
},
WrongLength {},
VerificationFailed {},
InvalidAsset {
asset: String,
},
AssetError {},
InvalidCycleDuration {},
InvalidRewardIncrease {},
MaxRewardTokensExceeded {
max: u32,
},
PrimitiveDoesNotExist {
msg: String,
},
TokenAlreadyBeingDistributed {},
DepositWindowClosed {},
NoSavedBootstrapContract {},
PhaseOngoing {},
ClaimsAlreadyAllowed {},
ClaimsNotAllowed {},
LockdropAlreadyClaimed {},
NoLockup {},
InvalidWindow {},
DuplicateTokens {},
AllTokensPurchased {},
TokenNotAvailable {},
InvalidExpiration {},
InvalidStartTime {},
TooManyMintMessages {
limit: u32,
},
AppContractNotSpecified {},
VFSContractNotSpecified {},
JsonError {},
InvalidComponent {
name: String,
},
MultiBatchNotSupported {},
UnexpectedNumberOfBytes {
expected: u8,
actual: usize,
},
NotAssignedOperator {
msg: Option<String>,
},
InvalidExpirationTime {},
InvalidPathname {
error: Option<String>,
},
InvalidUsername {
error: Option<String>,
},
InvalidPacket {
error: Option<String>,
},
InvalidDenomTrace {
denom: String,
},
InvalidDenomTracePath {
path: String,
denom: String,
},
InvalidTransferPort {
port: String,
},
InvalidModules {
msg: String,
},
InvalidTimestamp {
msg: String,
},
}
Variants§
Std(StdError)
Hex(FromHexError)
Payment(PaymentError)
ParseReplyError(ParseReplyError)
UnpublishedCodeID
UnpublishedVersion
ContractLocked
UnidentifiedMsgID
UnmetCondition
InvalidOrigin
InvalidSender
RewardTooLow
IncompleteUnbondingPeriod
LockedNFT
UserNotFound
ProcessNotFound
OrderedChannel
InvalidVersion
CrossChainComponentsCurrentlyDisabled
TokenInfoLenMissmatch
CantCloseChannel
Paused
EmptyOptional
EmptyClassId
NoTokens
UnrecognisedReplyId
ImbalancedTokenInfo
UnsupportedNFT
UnsupportedReturnType
UnsupportedProtocol
AlreadyUnbonded
NFTNotFound
PriceNotSet
InvalidPrimitive
StillBonded
ParseBoolError
NoResponseElementNeeded
ResponseElementRequired
InsufficientBondedTime
LockTimeTooShort
LockTimeTooLong
InvalidWeight
NoResults
NotEnoughTokens
MissingParameters
OnlyOneSourceAllowed
IllegalTokenName
IllegalTokenSymbol
Refilling
WithdrawalLimitExceeded
CoinNotFound
NotInRefillMode
NotEnoughResults
ReachedRecipientLimit
MinterBlacklisted
EmptyRecipientsList
AmountExceededHundredPrecent
InvalidAddress
ExpirationInPast
ExecuteError
UnspecifiedWithdrawalFrequency
ExpirationNotSpecified
CannotOverwriteHeldFunds
ContractAddressNotInAddressList
ModuleNotUnique
InvalidRate
InsufficientFunds
NoPendingPayments
NoReceivingAddress
TemporarilyDisabled
AccountNotFound
ModuleDiscriptionTooLong
SymbolInUse
ExceedsMaxAllowedCoins
NoLockedFunds
FundsAreLocked
InvalidTokenNameLength
TokenIsArchived
AuctionDoesNotExist
SaleDoesNotExist
AuctionNotStarted
AuctionEnded
SaleNotStarted
SaleEnded
SaleNotOpen
SaleExpired
SaleExecuted
SaleCancelled
NoTargetADOs
TokenOwnerCannotBid
TokenOwnerCannotBuy
BidSmallerThanHighestBid
Overflow
Underflow
CannotWithdrawHighestBid
WithdrawalIsEmpty
AuctionAlreadyStarted
StartTimeAfterEndTime
StartTimeInThePast
OutOfNFTs
HighestBidderCannotOutBid
InvalidFunds
InvalidADOVersion
InvalidCodeID
InvalidADOType
AuctionAlreadyClaimed
SaleAlreadyConducted
AuctionNotEnded
AuctionCancelled
ExpirationMustNotBeNever
ExpirationsMustBeOfSameType
MoreThanOneCoin
InvalidReplyId
ParsingError
MissingRequiredMessageData
CannotMigrate
NestedAndromedaMsg
UnexpectedExternalRate
DuplicateCoinDenoms
DuplicateRecipient
DuplicateContract
CannotSetOwnAccount
InvalidZeroAmount
Expired
NoAllowance
CannotExceedCap
LogoTooBig
InvalidXmlPreamble
InvalidPngHeader
Instantiate2AddressMismatch
DuplicateInitialBalanceAddresses
InvalidModule
UnsupportedOperation
IncompatibleModules
ModuleDoesNotExist
Claimed
ApprovalNotFound
BidAlreadyPlaced
BidLowerThanCurrent
BidNotExpired
TransferAgreementExists
CannotDoubleWrapToken
UnwrappingDisabled
TokenNotWrappedByThisContract
InvalidMetadata
InvalidRecipientType
InvalidTokensToWithdraw
ModuleImmutable
GeneratorNotSpecified
TooManyAppComponents
InvalidLtvRatio
NameAlreadyTaken
NoOngoingSale
PurchaseLimitReached
SaleNotEnded
MinSalesExceeded
LimitMustNotBeZero
SaleStarted
NoPurchases
CannotMintAfterSaleConducted
NotImplemented
InvalidStrategy
InvalidQuery
InvalidWithdrawal
StageExpired
StageNotExpired
WrongLength
VerificationFailed
InvalidAsset
AssetError
InvalidCycleDuration
InvalidRewardIncrease
MaxRewardTokensExceeded
PrimitiveDoesNotExist
TokenAlreadyBeingDistributed
DepositWindowClosed
NoSavedBootstrapContract
PhaseOngoing
ClaimsAlreadyAllowed
ClaimsNotAllowed
LockdropAlreadyClaimed
NoLockup
InvalidWindow
DuplicateTokens
AllTokensPurchased
TokenNotAvailable
InvalidExpiration
InvalidStartTime
TooManyMintMessages
AppContractNotSpecified
VFSContractNotSpecified
JsonError
InvalidComponent
MultiBatchNotSupported
UnexpectedNumberOfBytes
NotAssignedOperator
InvalidExpirationTime
InvalidPathname
InvalidUsername
InvalidPacket
InvalidDenomTrace
InvalidDenomTracePath
InvalidTransferPort
InvalidModules
InvalidTimestamp
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<AssetError> for ContractError
impl From<AssetError> for ContractError
Source§fn from(_err: AssetError) -> Self
fn from(_err: AssetError) -> Self
Converts to this type from the input type.
Source§impl From<ContractError> for ContractError
impl From<ContractError> for ContractError
Source§fn from(err: Cw20ContractError) -> Self
fn from(err: Cw20ContractError) -> Self
Converts to this type from the input type.
Source§impl From<ContractError> for ContractError
impl From<ContractError> for ContractError
Source§fn from(err: Cw721ContractError) -> Self
fn from(err: Cw721ContractError) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for ContractError
impl From<FromHexError> for ContractError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for ContractError
impl From<FromUtf8Error> for ContractError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<OverflowError> for ContractError
impl From<OverflowError> for ContractError
Source§fn from(_err: OverflowError) -> Self
fn from(_err: OverflowError) -> Self
Converts to this type from the input type.
Source§impl From<ParseBoolError> for ContractError
impl From<ParseBoolError> for ContractError
Source§fn from(_err: ParseBoolError) -> Self
fn from(_err: ParseBoolError) -> Self
Converts to this type from the input type.
Source§impl From<ParseReplyError> for ContractError
impl From<ParseReplyError> for ContractError
Source§fn from(source: ParseReplyError) -> Self
fn from(source: ParseReplyError) -> 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 From<Utf8Error> for ContractError
impl From<Utf8Error> 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