use thiserror::Error;
#[derive(Debug, Error)]
#[error(transparent)]
pub enum Error {
Reqwest(#[from] reqwest::Error),
#[error("API responded with error: {0}")]
Api(String),
#[error("API responded with both an empty error and empty data")]
EmptyErrorAndData,
}
pub type Result<T> = std::result::Result<T, Error>;