use thiserror::Error;
use crate::errors::IoError;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum HttpClientError {
#[error("HTTP client error: {0}")]
Reqwest(#[from] reqwest::Error),
#[error("Error loading TLS identity: {0}")]
IdentityLoad(IoError),
}
impl HttpClientError {
pub fn identity_load(err: impl Into<IoError>) -> Self {
Self::IdentityLoad(err.into())
}
}