From 2372495e1a0acb9ffead7651d8ed36a3bb98a15b Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 18 Mar 2026 11:19:51 +0800 Subject: Add new protocol crate with basic types and operations --- protocol/src/member/error.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 protocol/src/member/error.rs (limited to 'protocol/src/member/error.rs') 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, +} -- cgit