Enum cosmwasm_vm::VmError [−][src]
#[non_exhaustive]
pub enum VmError {
Show 19 variants
BackendErr {
source: BackendError,
},
CacheErr {
msg: String,
},
CommunicationErr {
source: CommunicationError,
},
CompileErr {
msg: String,
},
ConversionErr {
from_type: String,
to_type: String,
input: String,
},
CryptoErr {
source: CryptoError,
},
GasDepletion {},
GenericErr {
msg: String,
},
InstantiationErr {
msg: String,
},
IntegrityErr {},
ParseErr {
target_type: String,
msg: String,
},
DeserializationLimitExceeded {
length: usize,
max_length: usize,
},
SerializeErr {
source_type: String,
msg: String,
},
ResolveErr {
msg: String,
},
ResultMismatch {
function_name: String,
expected: usize,
actual: usize,
},
RuntimeErr {
msg: String,
},
StaticValidationErr {
msg: String,
},
UninitializedContextData {
kind: String,
},
WriteAccessDenied {},
}Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fields of BackendErr
source: BackendErrorFields of CacheErr
msg: StringFields of CommunicationErr
source: CommunicationErrorFields of CompileErr
msg: StringFields of CryptoErr
source: CryptoErrorFields of GasDepletion
Whenever there is no specific error type available
Fields of GenericErr
msg: StringFields of InstantiationErr
msg: StringFields of IntegrityErr
Fields of DeserializationLimitExceeded
Fields of ResolveErr
msg: StringFields of RuntimeErr
msg: StringFields of StaticValidationErr
msg: StringFields of UninitializedContextData
kind: StringFields of WriteAccessDenied
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for VmError
impl UnwindSafe for VmError
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
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