pub enum AbstractError {
Show 15 variants
Std(StdError),
Asset(AssetError),
Overflow(OverflowError),
Semver(String),
EntryFormattingError {
actual: String,
expected: String,
},
FormattingError {
object: String,
expected: String,
actual: String,
},
CannotDowngradeContract {
contract: String,
from: Version,
to: Version,
},
ContractNameMismatch {
from: String,
to: String,
},
AdapterNotInstalled(String),
AppNotInstalled(String),
MissingVersion(String),
Storage {
object: String,
msg: String,
},
Assert(String),
Fee(String),
Deposit(String),
}
Expand description
Wrapper error for the Abstract framework.
Variants§
Std(StdError)
Asset(AssetError)
Overflow(OverflowError)
Semver(String)
EntryFormattingError
FormattingError
CannotDowngradeContract
ContractNameMismatch
AdapterNotInstalled(String)
AppNotInstalled(String)
MissingVersion(String)
Storage
Assert(String)
Fee(String)
Deposit(String)
Trait Implementations§
source§impl Debug for AbstractError
impl Debug for AbstractError
source§impl Display for AbstractError
impl Display for AbstractError
source§impl Error for AbstractError
impl Error for AbstractError
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<AssetError> for AbstractError
impl From<AssetError> for AbstractError
source§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
source§impl From<Error> for AbstractError
impl From<Error> for AbstractError
source§fn from(err: SemverError) -> Self
fn from(err: SemverError) -> Self
Converts to this type from the input type.
source§impl From<Error> for AbstractError
impl From<Error> for AbstractError
source§fn from(err: CwSemverError) -> Self
fn from(err: CwSemverError) -> Self
Converts to this type from the input type.
source§impl From<OverflowError> for AbstractError
impl From<OverflowError> for AbstractError
source§fn from(source: OverflowError) -> Self
fn from(source: OverflowError) -> Self
Converts to this type from the input type.
source§impl From<StdError> for AbstractError
impl From<StdError> for AbstractError
source§impl PartialEq<AbstractError> for AbstractError
impl PartialEq<AbstractError> for AbstractError
source§fn eq(&self, other: &AbstractError) -> bool
fn eq(&self, other: &AbstractError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AbstractError
Auto Trait Implementations§
impl RefUnwindSafe for AbstractError
impl Send for AbstractError
impl Sync for AbstractError
impl Unpin for AbstractError
impl UnwindSafe for AbstractError
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