pub enum AbstractError {
Show 16 variants
Std(StdError),
Asset(AssetError),
RegistryError(RegistryError),
AnsHostError(AnsHostError),
Instantiate2AddressError(Instantiate2AddressError),
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,
},
AppNotInstalled(String),
MissingVersion(String),
Assert(String),
Fee(String),
UnequalModuleData {
cw2: String,
module: String,
},
CannotSkipVersion {
contract: String,
from: Version,
to: Version,
},
}
Expand description
Wrapper error for the Abstract framework.
Variants§
Std(StdError)
Asset(AssetError)
RegistryError(RegistryError)
AnsHostError(AnsHostError)
Instantiate2AddressError(Instantiate2AddressError)
Semver(String)
EntryFormattingError
FormattingError
CannotDowngradeContract
ContractNameMismatch
AppNotInstalled(String)
MissingVersion(String)
Assert(String)
Fee(String)
UnequalModuleData
CannotSkipVersion
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)>
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 GovOwnershipError
impl From<AbstractError> for GovOwnershipError
Source§fn from(source: AbstractError) -> Self
fn from(source: AbstractError) -> Self
Converts to this type from the input type.
Source§impl From<AnsHostError> for AbstractError
impl From<AnsHostError> for AbstractError
Source§fn from(source: AnsHostError) -> Self
fn from(source: AnsHostError) -> Self
Converts to this type from the input type.
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§impl From<Instantiate2AddressError> for AbstractError
impl From<Instantiate2AddressError> for AbstractError
Source§fn from(source: Instantiate2AddressError) -> Self
fn from(source: Instantiate2AddressError) -> Self
Converts to this type from the input type.
Source§impl From<RegistryError> for AbstractError
impl From<RegistryError> for AbstractError
Source§fn from(source: RegistryError) -> Self
fn from(source: RegistryError) -> Self
Converts to this type from the input type.
Source§impl From<StdError> for AbstractError
impl From<StdError> for AbstractError
Source§impl PartialEq for AbstractError
impl PartialEq for AbstractError
impl StructuralPartialEq for AbstractError
Auto Trait Implementations§
impl Freeze for AbstractError
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
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