rust_persian_tools/words_to_number/
errors.rs

1use thiserror::Error;
2
3#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
4#[derive(Error, Clone, Copy, Debug, Hash, PartialEq, Eq)]
5pub enum WordsToNumberError {
6    #[error("There is an invalid unit in the input.")]
7    InvalidUnit,
8    #[error("The input cannot be an empty string.")]
9    EmptyInput,
10}