You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
610 B
27 lines
610 B
use url::ParseError; |
|
|
|
pub type AppResult<R> = Result<R, AppError>; |
|
|
|
#[derive(thiserror::Error, Debug)] |
|
pub enum AppError { |
|
#[error(transparent)] |
|
UrlParseError(#[from] ParseError), |
|
|
|
#[error(transparent)] |
|
ReqwestError(#[from] reqwest::Error), |
|
|
|
#[error(transparent)] |
|
ReqwestWsError(#[from] reqwest_websocket::Error), |
|
|
|
#[error(transparent)] |
|
SerdeError(#[from] serde_json::Error), |
|
|
|
#[error(transparent)] |
|
DbError(#[from] rusqlite::Error), |
|
|
|
#[error(transparent)] |
|
StrumError(#[from] strum::ParseError), |
|
|
|
#[error(transparent)] |
|
ConfigError(#[from] envy::Error), |
|
}
|
|
|