pub enum AccountError {
Show 37 variants
Std(StdError),
Abstract(AbstractError),
Validation(ValidationError),
Ownership(GovOwnershipError),
Instantiate2AddressError(Instantiate2AddressError),
RegistryError(RegistryError),
AccountSuspended {},
QueryModulesFailed {
error: RegistryError,
},
ModuleAlreadyInstalled(String),
ProhibitedReinstall {},
ModuleNotInstallable(String),
InitMsgMissing(String),
InvalidModuleName {},
ModuleNotFound(String),
DuplicateModuleMigration {
module_id: String,
},
NotUpgradeable(ModuleInfo),
ModuleHasDependents(Vec<String>),
VersionRequirementNotMet {
module_id: String,
version: String,
comp: String,
post_migration: bool,
},
DependencyNotMet(String, String),
ModuleLimitReached {},
AlreadyWhitelisted(String),
NotWhitelisted {},
SubAccountDoesntExist {},
SubAccountIsNotCaller {},
SubAccountRegisterFailed {},
RenounceWithSubAccount {},
NoUpdates {},
InvalidConfigAction {
error: StdError,
},
OlderVersion(String, String),
SenderNotWhitelistedOrOwner {},
UnexpectedReply(),
SubAccountCreatorNotAccount {
caller: String,
account: String,
},
CantChainAdminCalls {},
AbstractAccountInvalidAddress {
abstract_account: String,
contract: String,
},
NoAuthFeature {},
AbstractAccountNoAuth {},
MissingCodeIdToMigrate {},
}Variants§
Std(StdError)
Abstract(AbstractError)
Validation(ValidationError)
Ownership(GovOwnershipError)
Instantiate2AddressError(Instantiate2AddressError)
RegistryError(RegistryError)
AccountSuspended
QueryModulesFailed
Fields
§
error: RegistryErrorModuleAlreadyInstalled(String)
ProhibitedReinstall
ModuleNotInstallable(String)
InitMsgMissing(String)
InvalidModuleName
ModuleNotFound(String)
DuplicateModuleMigration
NotUpgradeable(ModuleInfo)
ModuleHasDependents(Vec<String>)
VersionRequirementNotMet
DependencyNotMet(String, String)
ModuleLimitReached
AlreadyWhitelisted(String)
NotWhitelisted
SubAccountDoesntExist
SubAccountIsNotCaller
SubAccountRegisterFailed
RenounceWithSubAccount
NoUpdates
InvalidConfigAction
OlderVersion(String, String)
SenderNotWhitelistedOrOwner
UnexpectedReply()
SubAccountCreatorNotAccount
CantChainAdminCalls
AbstractAccountInvalidAddress
NoAuthFeature
AbstractAccountNoAuth
MissingCodeIdToMigrate
Trait Implementations§
Source§impl Debug for AccountError
impl Debug for AccountError
Source§impl Display for AccountError
impl Display for AccountError
Source§impl Error for AccountError
impl Error for AccountError
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 AccountError
impl From<AbstractError> for AccountError
Source§fn from(source: AbstractError) -> Self
fn from(source: AbstractError) -> Self
Converts to this type from the input type.
Source§impl From<GovOwnershipError> for AccountError
impl From<GovOwnershipError> for AccountError
Source§fn from(source: GovOwnershipError) -> Self
fn from(source: GovOwnershipError) -> Self
Converts to this type from the input type.
Source§impl From<Instantiate2AddressError> for AccountError
impl From<Instantiate2AddressError> for AccountError
Source§fn from(source: Instantiate2AddressError) -> Self
fn from(source: Instantiate2AddressError) -> Self
Converts to this type from the input type.
Source§impl From<RegistryError> for AccountError
impl From<RegistryError> for AccountError
Source§fn from(source: RegistryError) -> Self
fn from(source: RegistryError) -> Self
Converts to this type from the input type.
Source§impl From<StdError> for AccountError
impl From<StdError> for AccountError
Source§impl From<ValidationError> for AccountError
impl From<ValidationError> for AccountError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AccountError
impl PartialEq for AccountError
impl StructuralPartialEq for AccountError
Auto Trait Implementations§
impl !RefUnwindSafe for AccountError
impl !UnwindSafe for AccountError
impl Freeze for AccountError
impl Send for AccountError
impl Sync for AccountError
impl Unpin for AccountError
impl UnsafeUnpin for AccountError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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