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)>
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<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
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