1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("url parse error")]
UrlParse(#[from] url::ParseError),
#[error("reqwest error")]
Reqwest(#[from] reqwest::Error),
#[error("io error")]
Io(#[from] std::io::Error),
#[error("duplicate error")]
Duplicate(String),
#[error("path error")]
Path(String),
#[error("parse error")]
Parse(String),
}