Enum ink_env::Error[][src]

pub enum Error {
Show 13 variants Decode(Error), OffChain(OffChainError), CalleeTrapped, CalleeReverted, KeyNotFound, BelowSubsistenceThreshold, TransferFailed, NewContractNotFunded, CodeNotFound, NotCallable, Unknown, LoggingDisabled, EcdsaRecoverFailed,
}
Expand description

Errors that can be encountered upon environmental interaction.

Variants

Decode(Error)

Tuple Fields

0: Error

Error upon decoding an encoded value.

OffChain(OffChainError)

Tuple Fields

0: 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

Transfer failed because it would have brought the sender’s total balance below the subsistence threshold.

TransferFailed

Transfer failed for other not further specified reason. Most probably reserved or locked balance of the sender that was preventing the transfer.

NewContractNotFunded

The newly created contract is below the subsistence threshold after executing its constructor so no usable contract instance will be created.

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.

EcdsaRecoverFailed

ECDSA pubkey recovery failed. Most probably wrong recovery id or signature.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.