use thiserror::Error;
pub use eventsource_client::Error as EventsourceError;
#[derive(Debug, Error)]
pub enum Error {
#[error("Eventsource Client error: {0}")]
EventsourceClient(#[from] eventsource_client::Error),
#[error("AuthError Error: {0}")]
AuthError(String),
#[error("API Error: {0}")]
ApiError(String),
#[error("Request Error: {0}")]
RequestError(String),
#[error("de/serialize error: {0}")]
Serde(#[from] serde_json::error::Error),
#[error("io error: {0}")]
IO(#[from] std::io::Error),
}