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
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
.
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
.
The passed key does not exist in storage.
Transfer failed because it would have brought the sender’s total balance below the subsistence threshold.
Transfer failed for other not further specified reason. Most probably reserved or locked balance of the sender that was preventing the transfer.
The newly created contract is below the subsistence threshold after executing its constructor so no usable contract instance will be created.
No code could be found at the supplied code hash.
The account that was called is either no contract (e.g. user account) or is a tombstone.
The call to seal_debug_message
had no effect because debug message
recording was disabled.
ECDSA pubkey recovery failed. Most probably wrong recovery id or signature.
Returns if an unknown error was received from the host module.