🐛 fix(error): add specific error for missing label in mailbox

- add `LableNotFoundInMailbox` error to handle cases where a label is not found in the mailbox
This commit is contained in:
Jeremiah Russell
2025-10-10 16:15:21 +01:00
committed by Jeremiah Russell
parent e0d319698f
commit 244158f538

View File

@@ -18,6 +18,9 @@ pub enum Error {
/// No rule for label /// No rule for label
#[error("No rule for label {0}")] #[error("No rule for label {0}")]
NoRuleFoundForLabel(String), NoRuleFoundForLabel(String),
/// No label found in the mailbox
#[error("Label {0} not found in the mailbox")]
LableNotFoundInMailbox(String),
/// Rule not found for ID /// Rule not found for ID
#[error("No rule for id {0}")] #[error("No rule for id {0}")]
RuleNotFound(usize), RuleNotFound(usize),