pub enum EngineError {
InvalidCharacterInRegex,
OperationTimeOutError,
AutomatonShouldBeDeterministic,
AutomatonHasTooManyStates,
RegexSyntaxError(String),
TooMuchTerms(usize, usize),
ConditionInvalidRange,
ConditionIndexOutOfBound,
TokenError(TokenError),
}Expand description
An error thrown by the engine.
Variants§
InvalidCharacterInRegex
Invalid character used in regex.
OperationTimeOutError
The operation took too much time.
AutomatonShouldBeDeterministic
The given automaton should be deterministic.
AutomatonHasTooManyStates
The automaton has too many states.
RegexSyntaxError(String)
The regular expression can not be parsed.
TooMuchTerms(usize, usize)
Too many terms are used in the operation.
ConditionInvalidRange
The provided range can not be built from the spanning set.
ConditionIndexOutOfBound
The provided index is out of bound of the condition.
TokenError(TokenError)
There is an error with one of the token.
Implementations§
Source§impl EngineError
impl EngineError
Sourcepub fn is_server_error(&self) -> bool
pub fn is_server_error(&self) -> bool
Determine if the error is a server error. A server error should not be shown to the end user.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
impl Eq 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)>
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()
Source§impl PartialEq for EngineError
impl PartialEq for EngineError
impl StructuralPartialEq for EngineError
Auto Trait Implementations§
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more