mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 04:17:57 +00:00
export ModuleError and RuntimeError for downstream usage (#246)
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user