Enum casper_execution_engine::core::engine_state::ExecError[][src]

pub enum ExecError {
Show 45 variants Interpreter(String), Storage(Error), BytesRepr(Error), NamedKeyNotFound(String), KeyNotFound(Key), AccountNotFound(Key), TypeMismatch(StoredValueTypeMismatch), InvalidAccess { required: AccessRights, }, ForgedReference(URef), URefNotFound(URef), FunctionNotFound(String), ParityWasm(Error), WasmOptimizer, GasLimit, Ret(Vec<URef>), Resolver(ResolverError), Revert(ApiError), AddKeyFailure(AddKeyFailure), RemoveKeyFailure(RemoveKeyFailure), UpdateKeyFailure(UpdateKeyFailure), SetThresholdFailure(SetThresholdFailure), SystemContract(Error), DeploymentAuthorizationFailure, ExpectedReturnValue, UnexpectedReturnValue, InvalidContext, IncompatibleProtocolMajorVersion { expected: u32, actual: u32, }, CLValue(CLValueError), HostBufferEmpty, UnsupportedWasmStart, NoActiveContractVersions(ContractPackageHash), InvalidContractVersion(ContractVersionKey), NoSuchMethod(String), WasmPreprocessing(PreprocessingError), KeyIsNotAURef(Key), UnexpectedStoredValueVariant, LockedContract(ContractPackageHash), InvalidContractPackage(ContractPackageHash), InvalidContract(ContractHash), InvalidContractWasm(ContractWasmHash), MissingArgument { name: String, }, DictionaryItemKeyExceedsLength, MissingSystemContractRegistry, MissingSystemContractHash(String), RuntimeStackOverflow,
}
Expand description

Possible execution errors.

Variants

Interpreter(String)

Tuple Fields

0: String

WASM interpreter error.

Storage(Error)

Tuple Fields

0: Error

Storage error.

BytesRepr(Error)

Tuple Fields

0: Error

Failed to (de)serialize bytes.

NamedKeyNotFound(String)

Tuple Fields

0: String

Unable to find named key.

KeyNotFound(Key)

Tuple Fields

0: Key

Unable to find a key.

AccountNotFound(Key)

Tuple Fields

0: Key

Unable to find an account.

TypeMismatch(StoredValueTypeMismatch)

Tuple Fields

Type mismatch error.

InvalidAccess

Fields

required: AccessRights

Required access rights of the operation.

Invalid access.

ForgedReference(URef)

Tuple Fields

0: URef

Forged reference error.

URefNotFound(URef)

Tuple Fields

0: URef

Unable to find a URef.

FunctionNotFound(String)

Tuple Fields

0: String

Unable to find a function.

ParityWasm(Error)

Tuple Fields

0: Error

Parity WASM error.

WasmOptimizer

Error optimizing WASM.

GasLimit

Execution exceeded the gas limit.

Ret(Vec<URef>)

Tuple Fields

0: Vec<URef>

A stored smart contract incorrectly called a ret function.

Resolver(ResolverError)

Tuple Fields

Error using WASM host function resolver.

Revert(ApiError)

Tuple Fields

Reverts execution with a provided status

AddKeyFailure(AddKeyFailure)

Tuple Fields

Error adding an associated key.

RemoveKeyFailure(RemoveKeyFailure)

Tuple Fields

Error removing an associated key.

UpdateKeyFailure(UpdateKeyFailure)

Tuple Fields

Error updating an associated key.

SetThresholdFailure(SetThresholdFailure)

Tuple Fields

Error setting threshold on associated key.

SystemContract(Error)

Tuple Fields

0: Error

Error executing system contract.

DeploymentAuthorizationFailure

Weight of all used associated keys does not meet account’s deploy threshold.

ExpectedReturnValue

Host buffer expected a value to be present.

UnexpectedReturnValue

Host buffer was not expected to contain a value.

InvalidContext

Error calling a host function in a wrong context.

IncompatibleProtocolMajorVersion

Fields

expected: u32

Expected major version.

actual: u32

Actual major version supplied.

Unable to execute a deploy with invalid major protocol version.

CLValue(CLValueError)

Tuple Fields

Error converting a CLValue.

HostBufferEmpty

Unable to access host buffer.

UnsupportedWasmStart

WASM bytes contains an unsupported “start” section.

NoActiveContractVersions(ContractPackageHash)

Tuple Fields

Contract package has no active contract versions.

InvalidContractVersion(ContractVersionKey)

Tuple Fields

Invalid contract version supplied.

NoSuchMethod(String)

Tuple Fields

0: String

Contract does not have specified entry point.

WasmPreprocessing(PreprocessingError)

Tuple Fields

Error processing WASM bytes.

KeyIsNotAURef(Key)

Tuple Fields

0: Key

Unable to convert a Key into an URef.

UnexpectedStoredValueVariant

Unexpected variant of a stored value.

LockedContract(ContractPackageHash)

Tuple Fields

Error upgrading a locked contract package.

InvalidContractPackage(ContractPackageHash)

Tuple Fields

Unable to find a contract package by a specified hash address.

InvalidContract(ContractHash)

Tuple Fields

Unable to find a contract by a specified hash address.

InvalidContractWasm(ContractWasmHash)

Tuple Fields

Unable to find the WASM bytes specified by a hash address.

MissingArgument

Fields

name: String

Name of the required argument.

Error calling a smart contract with a missing argument.

DictionaryItemKeyExceedsLength

Error writing a dictionary item key which exceeded maximum allowed length.

MissingSystemContractRegistry

Missing system contract registry.

MissingSystemContractHash(String)

Tuple Fields

0: String

Missing system contract hash.

RuntimeStackOverflow

An attempt to push to the runtime stack which is already at the maximum height.

Implementations

Returns new type mismatch error.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

Converts self into a target type. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Should always be Self

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

Attempts to convert self into a target type. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more