mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 11:18:01 +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,
|
||||
}
|
||||
|
||||
+5
-1
@@ -85,7 +85,11 @@ mod runtimes;
|
||||
mod subscription;
|
||||
|
||||
pub use crate::{
|
||||
error::Error,
|
||||
error::{
|
||||
Error,
|
||||
ModuleError,
|
||||
RuntimeError,
|
||||
},
|
||||
events::{
|
||||
EventTypeRegistry,
|
||||
EventsDecoder,
|
||||
|
||||
Reference in New Issue
Block a user