1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use std::fmt::Debug;
use std::io;
use thiserror::Error;
use crate::nodes_selector::ConsistencyError;
#[derive(Debug, Error)]
pub enum NodeError {
#[error("{0}")]
ChitChat(String),
#[error("{0}")]
IO(#[from] io::Error),
#[error("{0}")]
Rpc(#[from] datacake_rpc::Error),
#[error("Failed to complete operation due to consistency level failure: {0}")]
Consistency(ConsistencyError),
#[error("Failed to initialised cluster extension: {0}")]
Extension(anyhow::Error),
}