mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 16:05:41 +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)]
|
#[derive(Clone, Debug, Eq, Error, PartialEq)]
|
||||||
#[error("{error} from {module}")]
|
#[error("{error} from {module}")]
|
||||||
pub struct ModuleError {
|
pub struct ModuleError {
|
||||||
|
/// The module where the error originated.
|
||||||
pub module: String,
|
pub module: String,
|
||||||
|
/// The actual error code.
|
||||||
pub error: String,
|
pub error: String,
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-1
@@ -85,7 +85,11 @@ mod runtimes;
|
|||||||
mod subscription;
|
mod subscription;
|
||||||
|
|
||||||
pub use crate::{
|
pub use crate::{
|
||||||
error::Error,
|
error::{
|
||||||
|
Error,
|
||||||
|
ModuleError,
|
||||||
|
RuntimeError,
|
||||||
|
},
|
||||||
events::{
|
events::{
|
||||||
EventTypeRegistry,
|
EventTypeRegistry,
|
||||||
EventsDecoder,
|
EventsDecoder,
|
||||||
|
|||||||
Reference in New Issue
Block a user