bulwark_wasm_host/
errors.rs#[derive(thiserror::Error, Debug)]
pub enum PluginLoadError {
#[error(transparent)]
WasiError(#[from] wasi_common::Error),
#[error(transparent)]
StringArray(#[from] wasi_common::StringArrayError),
#[error(transparent)]
Resolution(#[from] bulwark_config::ResolutionError),
#[error("at least one resource required")]
ResourceMissing,
#[error(transparent)]
AnyError(#[from] anyhow::Error),
}
#[derive(thiserror::Error, Debug)]
pub enum PluginInstantiationError {
#[error(transparent)]
WasiError(#[from] wasi_common::Error),
#[error(transparent)]
StringArray(#[from] wasi_common::StringArrayError),
#[error(transparent)]
ContextInstantiation(#[from] ContextInstantiationError),
#[error(transparent)]
AnyError(#[from] anyhow::Error),
}
#[derive(thiserror::Error, Debug)]
pub enum PluginExecutionError {
#[error(transparent)]
WasiError(#[from] wasi_common::Error),
#[error(transparent)]
StringArray(#[from] wasi_common::StringArrayError),
#[error("function not implemented '{expected}'")]
NotImplementedError { expected: String },
#[error(transparent)]
AnyError(#[from] anyhow::Error),
}
#[derive(thiserror::Error, Debug)]
pub enum ContextInstantiationError {
#[error(transparent)]
StringArray(#[from] wasi_common::StringArrayError),
#[error(transparent)]
ConfigSerialization(#[from] bulwark_config::ConfigSerializationError),
#[error(transparent)]
AnyError(#[from] anyhow::Error),
}