third_wheel/
error.rs

1use std::io;
2use thiserror::Error as ThisError;
3
4#[allow(clippy::pub_enum_variant_names)]
5#[derive(ThisError, Debug)]
6pub enum Error {
7    #[error("an error handling server responses")]
8    ServerError(String),
9    #[error("an error handling client requests")]
10    RequestError(String),
11    #[error(transparent)]
12    HyperError(#[from] hyper::Error),
13    #[error(transparent)]
14    IOError(#[from] io::Error),
15    #[error(transparent)]
16    NativeTlsError(#[from] native_tls::Error),
17    #[error(transparent)]
18    OpenSslError(#[from] openssl::error::Error),
19    #[error(transparent)]
20    OpenSslErrorStack(#[from] openssl::error::ErrorStack),
21    #[error("A string that should be utf-8 has the wrong encoding")]
22    NonUtf8String(String),
23    #[error(transparent)]
24    InvalidUri(#[from] http::uri::InvalidUri),
25}