pub enum AbstractSdkError {
Show 13 variants
    Abstract(AbstractError),
    Std(StdError),
    Asset(AssetError),
    MissingHandler {
        endpoint: String,
    },
    MissingModule {
        module: String,
    },
    MissingDependency {
        module: String,
    },
    CallbackNotCalledByIbcClient {
        caller: Addr,
        client_addr: Addr,
        module: String,
    },
    ModuleIbcNotCalledByHost {
        caller: Addr,
        host_addr: Addr,
        module: String,
    },
    NoModuleIbcHandler(String),
    ApiQuery {
        api: String,
        module_id: String,
        error: Box<AbstractError>,
    },
    NotAModule {
        addr: Addr,
        err: String,
    },
    WrongModuleInfo {
        addr: Addr,
        module: String,
        err: String,
    },
    OnlyAdmin {},
}Expand description
Error type for the abstract sdk crate.
Variants§
Abstract(AbstractError)
Std(StdError)
Asset(AssetError)
MissingHandler
MissingModule
MissingDependency
CallbackNotCalledByIbcClient
ModuleIbcNotCalledByHost
NoModuleIbcHandler(String)
ApiQuery
NotAModule
WrongModuleInfo
OnlyAdmin
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)>
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<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
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