pub enum RuleEngineError {
ParseError {
message: String,
},
EvaluationError {
message: String,
},
FieldNotFound {
field: String,
},
IoError(Error),
TypeMismatch {
expected: String,
actual: String,
},
InvalidOperator {
operator: String,
},
InvalidLogicalOperator {
operator: String,
},
RegexError {
message: String,
},
ActionError {
message: String,
},
ExecutionError(String),
SerializationError {
message: String,
},
}Expand description
Error types that can occur in the rule engine
Variants§
ParseError
Parse error during rule parsing
EvaluationError
Error during rule evaluation
FieldNotFound
Field not found in data context
IoError(Error)
IO error for file operations
TypeMismatch
Type mismatch error
InvalidOperator
Invalid operator error
InvalidLogicalOperator
Invalid logical operator error
RegexError
Regex compilation or execution error
ActionError
Action execution error
ExecutionError(String)
General execution error
SerializationError
Serialization/deserialization error
Trait Implementations§
Source§impl Debug for RuleEngineError
impl Debug for RuleEngineError
Source§impl Display for RuleEngineError
impl Display for RuleEngineError
Source§impl Error for RuleEngineError
impl Error for RuleEngineError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for RuleEngineError
impl !RefUnwindSafe for RuleEngineError
impl Send for RuleEngineError
impl Sync for RuleEngineError
impl Unpin for RuleEngineError
impl !UnwindSafe for RuleEngineError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more