shardcache_client_rs/error.rs
1use thiserror::Error;
2
3/// SCNP client error.
4#[derive(Debug, Error)]
5pub enum ShardCacheClientError {
6 #[error("io error: {0}")]
7 Io(#[from] std::io::Error),
8
9 #[error("protocol error: {0}")]
10 Protocol(String),
11
12 #[error("config error: {0}")]
13 Config(String),
14}
15
16/// SCNP client result.
17pub type Result<T> = std::result::Result<T, ShardCacheClientError>;