✨ feat(error): add RuleNotFound error
- add new error type for when a rule is not found by ID
This commit is contained in:
committed by
Jeremiah Russell
parent
d05f03fc1e
commit
3628f6a291
@@ -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),
|
||||||
|
/// Rule not found for ID
|
||||||
|
#[error("No rule for id {0}")]
|
||||||
|
RuleNotFound(usize),
|
||||||
/// Label not found in the rule set
|
/// Label not found in the rule set
|
||||||
#[error("Label `{0}` not found in the rule set")]
|
#[error("Label `{0}` not found in the rule set")]
|
||||||
LabelNotFoundInRules(String),
|
LabelNotFoundInRules(String),
|
||||||
|
|||||||
Reference in New Issue
Block a user