mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
21 lines
511 B
Rust
21 lines
511 B
Rust
|
use bincode::ErrorKind;
|
||
|
use wasmer_runtime::error::{ResolveError, RuntimeError};
|
||
|
|
||
|
#[derive(Debug)]
|
||
|
pub enum PluginError {
|
||
|
Io(std::io::Error),
|
||
|
Toml(toml::de::Error),
|
||
|
NoConfig,
|
||
|
NoSuchModule,
|
||
|
PluginModuleError(PluginModuleError)
|
||
|
}
|
||
|
|
||
|
#[derive(Debug)]
|
||
|
pub enum PluginModuleError {
|
||
|
FindFunction(String),
|
||
|
FunctionGet(ResolveError),
|
||
|
Compile(wasmer_runtime::error::CompileError),
|
||
|
Instantiate(wasmer_runtime::error::Error),
|
||
|
RunFunction(RuntimeError),
|
||
|
Encoding(Box<ErrorKind>),
|
||
|
}
|