1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#[derive(thiserror::Error, Debug)] pub enum Error { #[error("year missing")] YearMissing, #[error("season missing")] SeasonMissing, #[error("episode missing")] EpisodeMissing, #[error("HTTP error")] HTTP(#[from] reqwest::Error), #[error("CSV error")] CSV(#[from] csv_async::Error), //#[error("general failure")] //Other(#[from] Box<dyn std::error::Error>) }