Enum abstract_std::AbstractError
source · pub enum AbstractError {
Show 19 variants
Std(StdError),
Asset(AssetError),
Overflow(OverflowError),
VersionControlError(VersionControlError),
AnsHostError(AnsHostError),
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),
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)
Overflow(OverflowError)
VersionControlError(VersionControlError)
AnsHostError(AnsHostError)
Semver(String)
EntryFormattingError
FormattingError
CannotDowngradeContract
ContractNameMismatch
AdapterNotInstalled(String)
AppNotInstalled(String)
MissingVersion(String)
Storage
Assert(String)
Fee(String)
Deposit(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)>
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<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§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 From<VersionControlError> for AbstractError
impl From<VersionControlError> for AbstractError
source§fn from(source: VersionControlError) -> Self
fn from(source: VersionControlError) -> Self
Converts to this type from the input type.
source§impl PartialEq for AbstractError
impl PartialEq 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 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