Enum ContractError

Source
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)

§

Unauthorized

§

UnpublishedCodeID

§

UnpublishedVersion

§

ContractLocked

§

UnidentifiedMsgID

§

UnmetCondition

§

InvalidOrigin

§

InvalidSender

§

RewardTooLow

§

IncompleteUnbondingPeriod

§

LockedNFT

§

UserNotFound

§

ProcessNotFound

§

OrderedChannel

§

InvalidVersion

Fields

§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

Fields

§

SymbolInUse

§

ExceedsMaxAllowedCoins

§

NoLockedFunds

§

FundsAreLocked

§

InvalidTokenNameLength

Fields

§

TokenIsArchived

§

AuctionDoesNotExist

§

SaleDoesNotExist

§

AuctionNotStarted

§

AuctionEnded

§

SaleNotStarted

§

SaleEnded

§

SaleNotOpen

§

SaleExpired

§

SaleExecuted

§

SaleCancelled

§

NoTargetADOs

§

TokenOwnerCannotBid

§

TokenOwnerCannotBuy

§

BidSmallerThanHighestBid

§

Overflow

§

Underflow

§

CannotWithdrawHighestBid

§

WithdrawalIsEmpty

§

AuctionAlreadyStarted

§

StartTimeAfterEndTime

§

StartTimeInThePast

Fields

§current_time: u64
§current_block: u64
§

OutOfNFTs

§

HighestBidderCannotOutBid

§

InvalidFunds

Fields

§

InvalidADOVersion

Fields

§

InvalidCodeID

Fields

§

InvalidADOType

Fields

§

AuctionAlreadyClaimed

§

SaleAlreadyConducted

§

AuctionNotEnded

§

AuctionCancelled

§

ExpirationMustNotBeNever

§

ExpirationsMustBeOfSameType

§

MoreThanOneCoin

§

InvalidReplyId

§

ParsingError

Fields

§

MissingRequiredMessageData

§

CannotMigrate

Fields

§previous_contract: String
§

NestedAndromedaMsg

§

UnexpectedExternalRate

§

DuplicateCoinDenoms

§

DuplicateRecipient

§

DuplicateContract

§

CannotSetOwnAccount

§

InvalidZeroAmount

§

Expired

§

NoAllowance

§

CannotExceedCap

§

LogoTooBig

§

InvalidXmlPreamble

§

InvalidPngHeader

§

Instantiate2AddressMismatch

Fields

§expected: Addr
§received: Addr
§

DuplicateInitialBalanceAddresses

§

InvalidModule

Fields

§

UnsupportedOperation

§

IncompatibleModules

Fields

§

ModuleDoesNotExist

§

Claimed

§

ApprovalNotFound

Fields

§spender: String
§

BidAlreadyPlaced

§

BidLowerThanCurrent

§

BidNotExpired

§

TransferAgreementExists

§

CannotDoubleWrapToken

§

UnwrappingDisabled

§

TokenNotWrappedByThisContract

§

InvalidMetadata

§

InvalidRecipientType

Fields

§

InvalidTokensToWithdraw

Fields

§

ModuleImmutable

§

GeneratorNotSpecified

§

TooManyAppComponents

§

InvalidLtvRatio

Fields

§

NameAlreadyTaken

§

NoOngoingSale

§

PurchaseLimitReached

§

SaleNotEnded

§

MinSalesExceeded

§

LimitMustNotBeZero

§

SaleStarted

§

NoPurchases

§

CannotMintAfterSaleConducted

§

NotImplemented

Fields

§

InvalidStrategy

Fields

§strategy: String
§

InvalidQuery

§

InvalidWithdrawal

Fields

§

StageExpired

Fields

§stage: u8
§expiration: Expiration
§

StageNotExpired

Fields

§stage: u8
§expiration: Expiration
§

WrongLength

§

VerificationFailed

§

InvalidAsset

Fields

§asset: String
§

AssetError

§

InvalidCycleDuration

§

InvalidRewardIncrease

§

MaxRewardTokensExceeded

Fields

§max: u32
§

PrimitiveDoesNotExist

Fields

§

TokenAlreadyBeingDistributed

§

DepositWindowClosed

§

NoSavedBootstrapContract

§

PhaseOngoing

§

ClaimsAlreadyAllowed

§

ClaimsNotAllowed

§

LockdropAlreadyClaimed

§

NoLockup

§

InvalidWindow

§

DuplicateTokens

§

AllTokensPurchased

§

TokenNotAvailable

§

InvalidExpiration

§

InvalidStartTime

§

TooManyMintMessages

Fields

§limit: u32
§

AppContractNotSpecified

§

VFSContractNotSpecified

§

JsonError

§

InvalidComponent

Fields

§name: String
§

MultiBatchNotSupported

§

UnexpectedNumberOfBytes

Fields

§expected: u8
§actual: usize
§

NotAssignedOperator

Fields

§

InvalidExpirationTime

§

InvalidPathname

Fields

§

InvalidUsername

Fields

§

InvalidPacket

Fields

§

InvalidDenomTrace

Fields

§denom: String
§

InvalidDenomTracePath

Fields

§path: String
§denom: String
§

InvalidTransferPort

Fields

§port: String
§

InvalidModules

Fields

§

InvalidTimestamp

Fields

Trait Implementations§

Source§

impl Debug for ContractError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ContractError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for ContractError

Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AssetError> for ContractError

Source§

fn from(_err: AssetError) -> Self

Converts to this type from the input type.
Source§

impl From<ContractError> for ContractError

Source§

fn from(err: Cw20ContractError) -> Self

Converts to this type from the input type.
Source§

impl From<ContractError> for ContractError

Source§

fn from(err: Cw721ContractError) -> Self

Converts to this type from the input type.
Source§

impl From<FromHexError> for ContractError

Source§

fn from(source: FromHexError) -> Self

Converts to this type from the input type.
Source§

impl From<FromUtf8Error> for ContractError

Source§

fn from(err: FromUtf8Error) -> Self

Converts to this type from the input type.
Source§

impl From<OverflowError> for ContractError

Source§

fn from(_err: OverflowError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseBoolError> for ContractError

Source§

fn from(_err: ParseBoolError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseReplyError> for ContractError

Source§

fn from(source: ParseReplyError) -> Self

Converts to this type from the input type.
Source§

impl From<PaymentError> for ContractError

Source§

fn from(source: PaymentError) -> Self

Converts to this type from the input type.
Source§

impl From<StdError> for ContractError

Source§

fn from(source: StdError) -> Self

Converts to this type from the input type.
Source§

impl From<Utf8Error> for ContractError

Source§

fn from(err: Utf8Error) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ContractError

Source§

fn eq(&self, other: &ContractError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ContractError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<U> As for U

Source§

fn as_<T>(self) -> T
where T: CastFrom<U>,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.