export ModuleError and RuntimeError for downstream usage (#246)

Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
This commit is contained in:
Greg Hill
2021-03-15 09:26:55 +00:00
committed by GitHub
parent 568d6ea577
commit b37d8ecd5a
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -148,6 +148,8 @@ impl RuntimeError {
#[derive(Clone, Debug, Eq, Error, PartialEq)]
#[error("{error} from {module}")]
pub struct ModuleError {
/// The module where the error originated.
pub module: String,
/// The actual error code.
pub error: String,
}