diff options
Diffstat (limited to 'protocol/src/member/error.rs')
| -rw-r--r-- | protocol/src/member/error.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocol/src/member/error.rs b/protocol/src/member/error.rs new file mode 100644 index 0000000..143329c --- /dev/null +++ b/protocol/src/member/error.rs @@ -0,0 +1,8 @@ +#[derive(Debug, thiserror::Error)] +pub enum EMailAddressParseError { + #[error("Invalid email format")] + InvalidFormat, + + #[error("Account or domain cannot be empty")] + EmptyPart, +} |
