1#[derive(thiserror::Error, Debug)]
2pub enum Error {
3 #[error("Wasmtime error: {0}")]
4 WasmtimeError(#[from] wasmtime::Error),
5 #[error("Memory access error: {0}")]
6 MemoryAccessError(#[from] wasmtime::MemoryAccessError),
7 #[error("WASI error: {0}")]
8 WasiError(#[from] wasmtime_wasi::Error),
9 #[error("Memory error: {0}")]
10 MemoryError(&'static str),
11 #[error("I/O Error: {0}")]
12 IoError(#[from] std::io::Error),
13 #[error("Internal Error: {0}")]
14 InternalError(#[from] Box<dyn std::error::Error + Sync + Send>),
15 #[error("Runtime error: {0}")]
16 RuntimeError(&'static str),
17}