ralertsinua_models/error.rs
1use thiserror::Error;
2
3/// Groups up the kinds of errors that may happen in this crate.
4#[derive(Debug, Error)]
5pub enum ModelError {
6 // #[error("json parse error: {0}")]
7 // ParseJson(#[from] serde_json::Error),
8 #[error("json serialize error: {0}")]
9 TimeError(#[from] time::error::Error),
10 #[error("input/output error: {0}")]
11 Io(#[from] std::io::Error),
12 #[error("unknown error")]
13 Unknown,
14}