temp_conv/
error.rs

1//! Errors which may occur from this crate
2
3use serde::{Deserialize, Serialize};
4use thiserror::Error;
5
6/// A list of specifying general categories of parsing Errors.
7#[derive(Debug, Error, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
8pub enum TemperatureParseError {
9    /// Givin temperature was not matching any implemented temperature.
10    #[error("not temperature available with the name `{0}`")]
11    InvalidTemperature(String),
12}