summaryrefslogtreecommitdiff
path: root/rust/scraper/src/touchpad/error.rs
blob: b9216e40a4559103570fdd67c0178528c39bf472 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Error, Debug)]
pub enum TouchpadLiveError {
    #[error("Reqwest error")]
    RequestError(#[from] reqwest::Error),
    #[error("Date Parse Error")]
    DateParseError(#[from] chrono::ParseError),
    #[error("Abort Error")]
    AbortError(#[from] tokio::task::JoinError),
    #[error("Integer Parse Error")]
    ParseError(#[from] std::num::ParseIntError),
    #[error("Not Found")]
    NotFoundError,
}