use thiserror::Error;
#[derive(Error, Debug)]
pub enum AllTalkError {
#[error("Error reading file")]
IOError(#[from] std::io::Error),
#[error("Error during request")]
ReqwestError(#[from] reqwest::Error),
#[error("Error parsing the url")]
URLParserError(#[from] url::ParseError),
#[error("Unable to parse {json:?} into {target:?}")]
JsonParserError { json: String, target: String },
#[error("Invalid response {0}")]
ResponseError(String),
}