/ src / errors.rs
errors.rs
 1  #[derive(thiserror::Error, Debug)]
 2  pub enum AppError {
 3      #[error("GUI Error: {0}")]
 4      GuiError(#[from] eframe::Error),
 5  
 6      #[error("Unable to parse Season dates: {0}")]
 7      SeasonParseError(#[from] time::error::Parse),
 8  
 9      #[error("Unable to access Season Source: {0}")]
10      SeasonGetError(#[from] reqwest::Error),
11  
12      #[error("API Error: {0}")]
13      ApiError(#[from] riven::RiotApiError),
14  
15      #[error("Provided Player cannot be found on Riot's servers")]
16      UnknownPlayer(String),
17  }