#[derive(thiserror::Error, Debug)]
pub enum ClientError {
#[cfg(feature = "http")]
#[error("{0}")]
HttpError(#[from] crate::http::error::HttpError),
#[cfg(feature = "websocket")]
#[error("{0}")]
WebsocketError(#[from] crate::ws::error::WebsocketError),
#[error("Missing/invalid required configuration: {0}")]
ConfigError(&'static str),
#[cfg(feature = "websocket")]
#[error("No WebSocket client initialized")]
NoWebsocketClient,
}
pub type ClientResult<T> = Result<T, ClientError>;