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)
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.