pub enum EngineError {
InvalidExpression(String),
InvalidJson(String),
EvaluationFailed(String),
UnknownFunction(String),
QueryNotFound(String),
RegistrationFailed(String),
Internal(String),
}Expand description
Errors that can occur during engine operations.
Each variant represents a specific failure mode, making it easy to handle different error types appropriately.
Variants§
InvalidExpression(String)
JMESPath expression has invalid syntax.
Returned when JpxEngine::evaluate or
JpxEngine::validate encounters a
malformed expression.
InvalidJson(String)
JSON input could not be parsed.
Returned when JpxEngine::evaluate_str
or similar methods receive invalid JSON.
EvaluationFailed(String)
Expression evaluation failed at runtime.
This can happen when calling undefined functions (in strict mode), type mismatches, or other runtime errors.
UnknownFunction(String)
Requested function does not exist.
Returned by introspection methods when a function name is not found.
QueryNotFound(String)
Requested stored query does not exist.
Returned by JpxEngine::run_query
when the named query hasn’t been defined.
RegistrationFailed(String)
Discovery registration failed.
Returned when registering a discovery spec fails validation or conflicts with an existing registration.
Internal(String)
Internal error (lock poisoning, serialization failure, etc.).
These errors indicate bugs or unexpected conditions and should generally be reported.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnwindSafe for EngineError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more