pub enum CriterionError {
Expression(ExpressionError),
Select(SelectError),
Syntax {
condition: String,
message: String,
},
Regex {
condition: String,
message: String,
},
MissingContext(&'static str),
Unsupported(&'static str),
}Expand description
Why a criterion could not be decided.
A criterion that is simply false is not an error — it is the answer.
Variants§
Expression(ExpressionError)
A runtime expression in the criterion could not be evaluated.
Select(SelectError)
The criterion’s selector could not be applied.
Syntax
The simple condition does not parse.
Regex
The regex condition is not a valid regular expression.
MissingContext(&'static str)
A typed criterion arrived without the context it needs.
Unsupported(&'static str)
XPath, which this crate does not evaluate.
Trait Implementations§
Source§impl Clone for CriterionError
impl Clone for CriterionError
Source§fn clone(&self) -> CriterionError
fn clone(&self) -> CriterionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CriterionError
impl Debug for CriterionError
Source§impl Display for CriterionError
impl Display for CriterionError
impl Eq for CriterionError
Source§impl Error for CriterionError
impl Error for CriterionError
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 From<CriterionError> for ExecutionError
impl From<CriterionError> for ExecutionError
Source§fn from(source: CriterionError) -> Self
fn from(source: CriterionError) -> Self
Converts to this type from the input type.
Source§impl From<ExpressionError> for CriterionError
impl From<ExpressionError> for CriterionError
Source§fn from(source: ExpressionError) -> Self
fn from(source: ExpressionError) -> Self
Converts to this type from the input type.
Source§impl From<SelectError> for CriterionError
impl From<SelectError> for CriterionError
Source§fn from(source: SelectError) -> Self
fn from(source: SelectError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CriterionError
impl PartialEq for CriterionError
impl StructuralPartialEq for CriterionError
Auto Trait Implementations§
impl Freeze for CriterionError
impl RefUnwindSafe for CriterionError
impl Send for CriterionError
impl Sync for CriterionError
impl Unpin for CriterionError
impl UnsafeUnpin for CriterionError
impl UnwindSafe for CriterionError
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