fp_bindgen_support/wasmer2_host/
errors.rs1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum RuntimeError {
5 #[error(transparent)]
6 CompileError(#[from] wasmer::CompileError),
7}
8
9#[derive(Debug, Error)]
10pub enum InvocationError {
11 #[error("expected function was not exported: {0}")]
12 FunctionNotExported(String),
13
14 #[error("returned data did not match expected type")]
15 UnexpectedReturnType,
16
17 #[error(transparent)]
18 WasmerRuntimeError(#[from] wasmer::RuntimeError),
19}