something_awful/
error.rs

1#[derive(Debug, thiserror::Error)]
2pub enum Error {
3    #[error("reqwest error: {0}")]
4    ReqwestError(#[from] reqwest::Error),
5
6    #[error("login error")]
7    LoginError,
8
9    #[error("cookie IO error: {0}")]
10    CookieIOError(Box<dyn std::error::Error + Sync + Send>),
11
12    #[error("cookie store error: {0}")]
13    CookieStoreError(#[from] cookie_store::CookieError),
14
15    #[error("url parse error: {0}")]
16    UrlParseError(#[from] url::ParseError),
17
18    #[error("unable to parse thread: {0}")]
19    ThreadParsingError(String),
20
21    #[error("unable to parse post: {0}")]
22    PostParsingError(String),
23}