pub enum ContractError {
Show 49 variants
Std(StdError),
Unauthorized {},
InvalidCodeId {},
InvalidSubMsgId {},
InvalidLpTokenName {},
InvalidLpTokenSymbol {},
InvalidPoolId {},
LpTokenNotFound {},
SwapAmountZero {},
BurnAmountZero {},
MaxSpendError {
max_spend: Uint128,
offer_amount: Uint128,
},
MinReceiveError {
min_receive: Uint128,
ask_amount: Uint128,
},
PoolTypeAlreadyExists {},
InsufficientNativeTokensSent {
denom: String,
sent: Uint128,
needed: Uint128,
},
ReceivedUnexpectedLpTokens {
expected: Uint128,
received: Uint128,
},
PoolExitTransitionLpToBurnMismatch {
expected_to_burn: Uint128,
actual_burn: Uint128,
},
PoolExitTransitionAssetsOutMismatch {
expected_assets_out: String,
actual_assets_out: String,
},
MinAssetOutError {
return_amount: Uint128,
min_receive: Uint128,
asset_info: AssetInfo,
},
MaxLpToBurnError {
burn_amount: Uint128,
max_lp_to_burn: Uint128,
},
InsufficientLpTokensToExit {},
InvalidNumberOfAssets {},
PoolQueryFailed {
error: String,
},
MismatchedAssets {},
InvalidSequenceOfAssets {},
DeadlineExpired {},
AmountCannotBeZero {},
SameTokenError {},
InsufficientTokensSent {},
SwapLimit {},
PoolTypeConfigDuplicate {},
InvalidFeeInfo {},
PoolTypeConfigNotFound {},
PoolConfigDisabled {},
RepeatedAssets {},
AddressAlreadyWhitelisted,
AddressNotWhitelisted,
PoolTypeCreationDisabled,
CannotAddOwnerToWhitelist,
InvalidPoolCreationFee,
AutoStakeDisabled,
PausedDeposit,
PausedSwap,
LpTokenCodeIdNotSet,
FeeCollectorNotSet,
InvalidNativeAssetPrecisionList,
UnsupportedPrecision,
ImbalancedExitPaused,
InvalidContractVersionForUpgrade {
upgrade_version: String,
expected: String,
actual: String,
},
InvalidContractNameForMigration {
expected: String,
actual: String,
},
}Variants§
Std(StdError)
InvalidCodeId
InvalidSubMsgId
InvalidLpTokenName
InvalidLpTokenSymbol
InvalidPoolId
LpTokenNotFound
SwapAmountZero
BurnAmountZero
MaxSpendError
MinReceiveError
PoolTypeAlreadyExists
InsufficientNativeTokensSent
ReceivedUnexpectedLpTokens
PoolExitTransitionLpToBurnMismatch
PoolExitTransitionAssetsOutMismatch
MinAssetOutError
MaxLpToBurnError
InsufficientLpTokensToExit
InvalidNumberOfAssets
PoolQueryFailed
MismatchedAssets
InvalidSequenceOfAssets
DeadlineExpired
AmountCannotBeZero
SameTokenError
InsufficientTokensSent
SwapLimit
PoolTypeConfigDuplicate
InvalidFeeInfo
PoolTypeConfigNotFound
PoolConfigDisabled
RepeatedAssets
AddressAlreadyWhitelisted
AddressNotWhitelisted
PoolTypeCreationDisabled
CannotAddOwnerToWhitelist
InvalidPoolCreationFee
AutoStakeDisabled
PausedDeposit
PausedSwap
LpTokenCodeIdNotSet
FeeCollectorNotSet
InvalidNativeAssetPrecisionList
UnsupportedPrecision
ImbalancedExitPaused
InvalidContractVersionForUpgrade
InvalidContractNameForMigration
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<OverflowError> for ContractError
impl From<OverflowError> for ContractError
Source§fn from(o: OverflowError) -> Self
fn from(o: OverflowError) -> 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more