#[derive(Debug, thiserror::Error)]
pub enum OcctError {
#[error("{operation}: {message}")]
Operation {
operation: String,
message: String,
},
#[error("WASM runtime error: {0}")]
Runtime(#[from] wasmtime::Error),
#[error("memory error: {0}")]
Memory(String),
}
pub type OcctResult<T> = Result<T, OcctError>;