hessra_client/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum ClientError {
5 #[error("HTTP client error: {0}")]
6 Http(#[from] reqwest::Error),
7
8 #[error("TLS configuration error: {0}")]
9 TlsConfig(String),
10
11 #[error("Invalid response: {0}")]
12 InvalidResponse(String),
13
14 #[error("Token request failed: {0}")]
15 TokenRequest(String),
16
17 #[error("Token verification failed: {0}")]
18 TokenVerification(String),
19
20 #[error("Configuration error: {0}")]
21 Config(String),
22}