aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index 9929a896..1e611adb 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -9,11 +9,23 @@ pub enum Error {
#[error(display = "Hyper error")]
Hyper(#[error(source)] hyper::Error),
+ #[error(display = "HTTP error")]
+ HTTP(#[error(source)] http::Error),
+
#[error(display = "Messagepack encode error")]
RMPEncode(#[error(source)] rmp_serde::encode::Error),
#[error(display = "Messagepack decode error")]
RMPDecode(#[error(source)] rmp_serde::decode::Error),
+ #[error(display = "TOML decode error")]
+ TomlDecode(#[error(source)] toml::de::Error),
+
+ #[error(display = "Timeout")]
+ RPCTimeout(#[error(source)] tokio::time::Elapsed),
+
+ #[error(display = "RPC error")]
+ RPCError(String),
+
#[error(display = "")]
- Msg(String),
+ Message(String),
}