Skip to content

Commit

Permalink
feat(error): add DateTimeParsingError and EmailParsingError varia…
Browse files Browse the repository at this point in the history
…nts to `ParsingError` enum (#1146)
  • Loading branch information
Chethan-rao authored May 13, 2023
1 parent 46b40ec commit 7eed8e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/common_utils/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ pub enum ParsingError {
/// Failed to parse data
#[error("Unknown error while parsing")]
UnknownError,
/// Failed to parse datetime
#[error("Failed to parse datetime")]
DateTimeParsingError,
/// Failed to parse email
#[error("Failed to parse email")]
EmailParsingError,
}

/// Validation errors.
Expand Down

0 comments on commit 7eed8e7

Please sign in to comment.