1use std::num::ParseFloatError;
2
3use thiserror::Error;
4
5#[derive(Error, Debug)]
7pub enum HabRsError {
8 #[error("could not parse string: {0}")]
10 Parse(String),
11 #[error("could not parse string into float: {0}")]
13 ParseFloat(#[from] ParseFloatError),
14 #[error("could not parse string into date/time: {0}")]
16 ParseDateTime(#[from] chrono::format::ParseError),
17 #[error("json error")]
19 Json(#[from] serde_json::Error),
20 #[error("could not decode as base64: {0}")]
22 Base64(#[from] base64::DecodeError),
23}