feat(error): add RuleNotFound error

- add new error type for when a rule is not found by ID
This commit is contained in:
Jeremiah Russell
2025-10-09 08:13:35 +01:00
committed by Jeremiah Russell
parent d05f03fc1e
commit 3628f6a291

View File

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