MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / RuntimeError

Enum RuntimeError

runtime/src/error.rs:12–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11#[derive(Error, Debug)]
12pub enum RuntimeError {
13 #[error("Error invoking function {0}")]
14 CallFunctionError(String),
15
16 #[error("Error executing {0}")]
17 ExecutionError(String),
18
19 #[error("Error exporting function {0}")]
20 ExportFunctionError(String),
21
22 #[error("Invalid parameter type {0}")]
23 InvalidParamType(String),
24
25 #[error("Wasmtime error {0}")]
26 WasmtimeError(String),
27}
28
29/// Utility result type to be used throughout
30pub type Result<T> = std::result::Result<T, RuntimeError>;

Callers 1

process_transactionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected