Enum casper_execution_engine::core::execution::Error[][src]

pub enum Error {
Show 44 variants Interpreter(String), Storage(Error), BytesRepr(Error), NamedKeyNotFound(String), KeyNotFound(Key), AccountNotFound(Key), TypeMismatch(TypeMismatch), InvalidAccess { required: AccessRights, }, ForgedReference(URef), URefNotFound(URef), FunctionNotFound(String), ParityWasm(Error), WasmOptimizer, GasLimit, Ret(Vec<URef>), Rng(String), 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), InvalidKeyLength { expected: usize, actual: usize, }, KeyIsNotAURef(Key), UnexpectedStoredValueVariant, LockedContract(ContractPackageHash), InvalidContractPackage(ContractPackageHash), InvalidContract(ContractHash), InvalidContractWasm(ContractWasmHash), MissingArgument { name: String, }, DictionaryItemKeyExceedsLength,
}

Variants

Interpreter

Tuple Fields of Interpreter

0: String
Storage

Tuple Fields of Storage

0: Error
BytesRepr

Tuple Fields of BytesRepr

0: Error
NamedKeyNotFound

Tuple Fields of NamedKeyNotFound

0: String
KeyNotFound

Tuple Fields of KeyNotFound

0: Key
AccountNotFound

Tuple Fields of AccountNotFound

0: Key
TypeMismatch

Tuple Fields of TypeMismatch

0: TypeMismatch
InvalidAccess

Fields of InvalidAccess

required: AccessRights
ForgedReference

Tuple Fields of ForgedReference

0: URef
URefNotFound

Tuple Fields of URefNotFound

0: URef
FunctionNotFound

Tuple Fields of FunctionNotFound

0: String
ParityWasm

Tuple Fields of ParityWasm

0: Error
WasmOptimizer
GasLimit
Ret

Tuple Fields of Ret

0: Vec<URef>
Rng

Tuple Fields of Rng

0: String
Resolver

Tuple Fields of Resolver

0: ResolverError
Revert

Reverts execution with a provided status

Tuple Fields of Revert

0: ApiError
AddKeyFailure

Tuple Fields of AddKeyFailure

0: AddKeyFailure
RemoveKeyFailure

Tuple Fields of RemoveKeyFailure

0: RemoveKeyFailure
UpdateKeyFailure

Tuple Fields of UpdateKeyFailure

0: UpdateKeyFailure
SetThresholdFailure

Tuple Fields of SetThresholdFailure

0: SetThresholdFailure
SystemContract

Tuple Fields of SystemContract

0: Error
DeploymentAuthorizationFailure
ExpectedReturnValue
UnexpectedReturnValue
InvalidContext
IncompatibleProtocolMajorVersion

Fields of IncompatibleProtocolMajorVersion

expected: u32actual: u32
CLValue

Tuple Fields of CLValue

0: CLValueError
HostBufferEmpty
UnsupportedWasmStart
NoActiveContractVersions

Tuple Fields of NoActiveContractVersions

0: ContractPackageHash
InvalidContractVersion

Tuple Fields of InvalidContractVersion

0: ContractVersionKey
NoSuchMethod

Tuple Fields of NoSuchMethod

0: String
WasmPreprocessing

Tuple Fields of WasmPreprocessing

0: PreprocessingError
InvalidKeyLength

Fields of InvalidKeyLength

expected: usizeactual: usize
KeyIsNotAURef

Tuple Fields of KeyIsNotAURef

0: Key
UnexpectedStoredValueVariant
LockedContract

Tuple Fields of LockedContract

0: ContractPackageHash
InvalidContractPackage

Tuple Fields of InvalidContractPackage

0: ContractPackageHash
InvalidContract

Tuple Fields of InvalidContract

0: ContractHash
InvalidContractWasm

Tuple Fields of InvalidContractWasm

0: ContractWasmHash
MissingArgument

Fields of MissingArgument

name: String
DictionaryItemKeyExceedsLength

Implementations

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.

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)

recently added

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.