use polyoxide_core::{ApiError, RequestError};
use thiserror::Error;
#[derive(Error, Debug)]
pub enum GammaError {
#[error(transparent)]
Api(#[from] ApiError),
}
impl RequestError for GammaError {
async fn from_response(response: reqwest::Response) -> Self {
Self::Api(ApiError::from_response(response).await)
}
}
polyoxide_core::impl_api_error_conversions!(GammaError);