pub enum CwDexError {
Show 17 variants
Std(StdError),
TryFromIntError(TryFromIntError),
Overflow(OverflowError),
DivideByZero(DivideByZeroError),
Infallible(Infallible),
InvalidOutAsset {},
InvalidInAsset {
a: Asset,
},
InvalidLpToken {},
BigIntOverflow {},
InvalidZeroAmount {},
LiquidityAmountTooSmall {},
InvalidProvideLPsWithSingleToken {},
NotLpToken {},
UnstakingDurationNotSupported {},
MinOutNotReceived {
min_out: Uint128,
received: Uint128,
},
AddressParsingErrors {
token_denom: String,
},
UnsupportedArguments {
reason: String,
},
}Expand description
§Description
This enum describes router-test contract errors!
Variants§
Std(StdError)
Converts from cosmwasm_std::StdError
TryFromIntError(TryFromIntError)
Converts from std::num::TryFromIntError
Overflow(OverflowError)
Converts from cosmwasm_std::OverflowError
DivideByZero(DivideByZeroError)
Converts from cosmwasm_std::DivideByZeroError
Infallible(Infallible)
Converts from std::convert::Infallible
InvalidOutAsset
Invalid Reply ID Error
InvalidInAsset
Invalid input asset
InvalidLpToken
Invalid LP token
BigIntOverflow
Overflow when converting to from BigInt to Uint128
InvalidZeroAmount
Zero funds transfer
LiquidityAmountTooSmall
Insufficient amount of liquidity
InvalidProvideLPsWithSingleToken
Results from single-sided entry into empty pool
NotLpToken
Asset is not an LP token
UnstakingDurationNotSupported
When unstaking/unbonding is expected to be instant
MinOutNotReceived
The minimum amount of tokens requested was not returned from the action
Fields
AddressParsingErrors
For when the token_denom can’t be parsed
UnsupportedArguments
For when min_out is set for concentrated liquidity pools, as they do not support min_out
Trait Implementations§
Source§impl Debug for CwDexError
impl Debug for CwDexError
Source§impl Display for CwDexError
impl Display for CwDexError
Source§impl Error for CwDexError
impl Error for CwDexError
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<CwDexError> for StdError
impl From<CwDexError> for StdError
Source§fn from(x: CwDexError) -> Self
fn from(x: CwDexError) -> Self
Converts to this type from the input type.
Source§impl From<DivideByZeroError> for CwDexError
impl From<DivideByZeroError> for CwDexError
Source§fn from(source: DivideByZeroError) -> Self
fn from(source: DivideByZeroError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for CwDexError
impl From<Infallible> for CwDexError
Source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<OverflowError> for CwDexError
impl From<OverflowError> for CwDexError
Source§fn from(source: OverflowError) -> Self
fn from(source: OverflowError) -> Self
Converts to this type from the input type.
Source§impl From<StdError> for CwDexError
impl From<StdError> for CwDexError
Source§impl From<TryFromIntError> for CwDexError
impl From<TryFromIntError> for CwDexError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CwDexError
impl PartialEq for CwDexError
impl StructuralPartialEq for CwDexError
Auto Trait Implementations§
impl Freeze for CwDexError
impl RefUnwindSafe for CwDexError
impl Send for CwDexError
impl Sync for CwDexError
impl Unpin for CwDexError
impl UnwindSafe for CwDexError
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