use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("Throttle client domain error: {0}")]
DomainError(String),
#[error(
"Throttle client received a response not expected from a Throttle Server. Check server and \
client version or maybe the Url to the throttle server is incorrect?"
)]
UnexpectedResponse,
#[error("Throttle http client error: {0}")]
Reqwest(#[from] reqwest::Error),
}