use crate::ApiError;
#[derive(Debug, thiserror::Error)]
pub enum SchemaRegistryError {
#[error(transparent)]
ReqwestError(#[from] reqwest::Error),
#[error(transparent)]
ReqwestMiddlewareError(#[from] reqwest_middleware::Error),
#[error(transparent)]
UrlError(#[from] url::ParseError),
#[error(transparent)]
ApiError(#[from] ApiError),
#[error("Schema registry error {0}")]
SchemaRegistryError(String),
}