mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-12 00:21:20 +00:00
Implement Error for Creation Error (#180)
This commit is contained in:
@ -219,6 +219,17 @@ impl PartialEq for CreationError {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl std::fmt::Display for CreationError {
|
||||||
|
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||||
|
match self {
|
||||||
|
CreationError::UnableToCreateMemory => write!(f, "Unable to Create Memory"),
|
||||||
|
CreationError::UnableToCreateTable => write!(f, "Unable to Create Table"),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl std::error::Error for CreationError {}
|
||||||
|
|
||||||
/// The amalgamation of all errors that can occur
|
/// The amalgamation of all errors that can occur
|
||||||
/// during the compilation, instantiation, or execution
|
/// during the compilation, instantiation, or execution
|
||||||
/// of a webassembly module.
|
/// of a webassembly module.
|
||||||
|
Reference in New Issue
Block a user