pub enum Error {
Show 13 variants
Decode(Error),
OffChain(OffChainError),
CalleeTrapped,
CalleeReverted,
KeyNotFound,
_BelowSubsistenceThreshold,
TransferFailed,
_EndowmentTooLow,
CodeNotFound,
NotCallable,
Unknown,
LoggingDisabled,
EcdsaRecoveryFailed,
}
Expand description
Errors that can be encountered upon environmental interaction.
Variants
Decode(Error)
Error upon decoding an encoded value.
OffChain(OffChainError)
An error that can only occur in the off-chain environment.
CalleeTrapped
The call to another contract has trapped.
CalleeReverted
The call to another contract has been reverted.
KeyNotFound
The queried contract storage entry is missing.
_BelowSubsistenceThreshold
Deprecated and no longer returned: There is only the minimum balance.
TransferFailed
Transfer failed for other not further specified reason. Most probably reserved or locked balance of the sender that was preventing the transfer.
_EndowmentTooLow
Deprecated and no longer returned: Endowment is no longer required.
CodeNotFound
No code could be found at the supplied code hash.
NotCallable
The account that was called is no contract, but a plain account.
Unknown
An unknown error has occurred.
LoggingDisabled
The call to seal_debug_message
had no effect because debug message
recording was disabled.
EcdsaRecoveryFailed
ECDSA pubkey recovery failed. Most probably wrong recovery id or signature.
Trait Implementations
sourceimpl From<AccountError> for Error
impl From<AccountError> for Error
sourcefn from(account_error: AccountError) -> Self
fn from(account_error: AccountError) -> Self
Converts to this type from the input type.
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more