summaryrefslogtreecommitdiff
path: root/rust/scraper/src/touchpad/error.rs
blob: 57c2eda5f76a6549254aa087ca095e0cd3e6f0fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
}