chainstream_sdk/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum ChainStreamError {
5 #[error("Configuration error: {0}")]
6 Config(String),
7
8 #[error("Authentication error: {0}")]
9 Auth(String),
10
11 #[error("WebSocket error: {0}")]
12 WebSocket(String),
13
14 #[error("Serialization error: {0}")]
15 Serialization(String),
16}