kassandra_client/error.rs
1//! Error type for the Kassandra client library
2
3use thiserror::Error;
4
5pub type Result<T> = std::result::Result<T, Error>;
6
7#[derive(Error, Debug)]
8pub enum Error {
9 #[error("Error in response from Kassandra service: {0}")]
10 ServerError(String),
11 #[error("{0}")]
12 Io(std::io::Error),
13 #[error("{0}")]
14 MsgError(shared::MsgError),
15 #[error("Establishing RA-TLS connection failed: {0}")]
16 RATLS(String),
17}