diff options
Diffstat (limited to 'rust/scraper/src/touchpad/error.rs')
-rw-r--r-- | rust/scraper/src/touchpad/error.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rust/scraper/src/touchpad/error.rs b/rust/scraper/src/touchpad/error.rs new file mode 100644 index 0000000..57c2eda --- /dev/null +++ b/rust/scraper/src/touchpad/error.rs @@ -0,0 +1,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) +}
\ No newline at end of file |