motorx_core/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Error {
5    #[error("Io error: {0:?}")]
6    Io(#[from] std::io::Error),
7    #[error("Hyper error: {0:?}")]
8    Hyper(#[from] hyper::Error),
9    #[cfg(feature = "tls")]
10    #[error("Rustls error: {0:?}")]
11    Rustls(#[from] rustls::Error),
12}