Skip to main content

haystack_client/
error.rs

1#[derive(Debug, thiserror::Error)]
2pub enum ClientError {
3    #[error("authentication failed: {0}")]
4    AuthFailed(String),
5    #[error("server error: {0}")]
6    ServerError(String),
7    #[error("transport error: {0}")]
8    Transport(String),
9    #[error("connection error: {0}")]
10    Connection(String),
11    #[error("codec error: {0}")]
12    Codec(String),
13    #[error("connection closed")]
14    ConnectionClosed,
15}