Enum ink_engine::ext::Error[][src]

#[repr(u32)]
pub enum Error {
    CalleeTrapped,
    CalleeReverted,
    KeyNotFound,
    BelowSubsistenceThreshold,
    TransferFailed,
    NewContractNotFunded,
    CodeNotFound,
    NotCallable,
    LoggingDisabled,
    EcdsaRecoverFailed,
    Unknown,
}
Expand description

Every error that can be returned to a contract when it calls any of the host functions.

Variants

CalleeTrapped

The called function trapped and has its state changes reverted. In this case no output buffer is returned. Can only be returned from seal_call and seal_instantiate.

CalleeReverted

The called function ran to completion but decided to revert its state. An output buffer is returned when one was supplied. Can only be returned from seal_call and seal_instantiate.

KeyNotFound

The passed key does not exist in storage.

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 either no contract (e.g. user account) or is a tombstone.

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.

Unknown

Returns if an unknown error was received from the host module.

Trait Implementations

Formats the value using the given formatter. Read more

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.