Enum abstract_sdk::AbstractSdkError
source · pub enum AbstractSdkError {
Show 14 variants
Abstract(AbstractError),
Std(StdError),
Asset(AssetError),
MissingHandler {
endpoint: String,
},
MissingModule {
module: String,
},
MissingDependency {
module: String,
},
MissingAsset {
asset: AssetEntry,
},
CallbackNotCalledByIbcClient {
caller: Addr,
client_addr: Addr,
module: String,
},
ModuleIbcNotCalledByHost {
caller: Addr,
host_addr: Addr,
module: String,
},
NoModuleIbcHandler(String),
AdminNotSet {
proxy_addr: Addr,
},
ApiQuery {
api: String,
module_id: String,
error: Box<AbstractError>,
},
NotAModule {
addr: Addr,
err: String,
},
WrongModuleInfo {
addr: Addr,
module: String,
err: String,
},
}Expand description
Error type for the abstract sdk crate.
Variants§
Abstract(AbstractError)
Std(StdError)
Asset(AssetError)
MissingHandler
MissingModule
MissingDependency
MissingAsset
Fields
§
asset: AssetEntryCallbackNotCalledByIbcClient
ModuleIbcNotCalledByHost
NoModuleIbcHandler(String)
AdminNotSet
ApiQuery
NotAModule
WrongModuleInfo
Implementations§
source§impl AbstractSdkError
impl AbstractSdkError
pub fn generic_err(msg: impl Into<String>) -> Self
Trait Implementations§
source§impl Debug for AbstractSdkError
impl Debug for AbstractSdkError
source§impl Display for AbstractSdkError
impl Display for AbstractSdkError
source§impl Error for AbstractSdkError
impl Error for AbstractSdkError
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<AbstractError> for AbstractSdkError
impl From<AbstractError> for AbstractSdkError
source§fn from(source: AbstractError) -> Self
fn from(source: AbstractError) -> Self
Converts to this type from the input type.
source§impl From<AssetError> for AbstractSdkError
impl From<AssetError> for AbstractSdkError
source§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
source§impl From<StdError> for AbstractSdkError
impl From<StdError> for AbstractSdkError
source§impl PartialEq for AbstractSdkError
impl PartialEq for AbstractSdkError
source§fn eq(&self, other: &AbstractSdkError) -> bool
fn eq(&self, other: &AbstractSdkError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AbstractSdkError
Auto Trait Implementations§
impl Freeze for AbstractSdkError
impl RefUnwindSafe for AbstractSdkError
impl Send for AbstractSdkError
impl Sync for AbstractSdkError
impl Unpin for AbstractSdkError
impl UnwindSafe for AbstractSdkError
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