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

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.