pub enum TckErrorClass {
SyntaxError,
TypeError,
ArgumentError,
EntityNotFound,
SemanticError,
ProcedureError,
ParameterMissing,
ConstraintVerificationFailed,
}Expand description
One of the eight openCypher TCK error classes. The spec harness
(ADR-0482) asserts an expected class, while ErrorKind carries the
finer-grained detail. Every ErrorKind maps to exactly one class via
ErrorKind::tck_class.
Variants§
SyntaxError
TypeError
ArgumentError
EntityNotFound
SemanticError
ProcedureError
ParameterMissing
ConstraintVerificationFailed
Implementations§
Source§impl TckErrorClass
impl TckErrorClass
Sourcepub fn from_name(name: &str) -> Option<TckErrorClass>
pub fn from_name(name: &str) -> Option<TckErrorClass>
Parses one of the eight canonical openCypher class names back into a
TckErrorClass; the inverse of TckErrorClass::as_str. Returns
None for any other string.
The spec harness’s should be raised matcher makes the same call
over the same eight names (its clspec/errors.py, ADR-0482): a
step whose class is not one of them (e.g. the harness cip-eval
suite’s GraphTypeError, SchemaError,
ConstraintValidationFailed) falls back to lenient any-error
matching rather than a strict class assertion.
Trait Implementations§
Source§impl Clone for TckErrorClass
impl Clone for TckErrorClass
impl Copy for TckErrorClass
Source§impl Debug for TckErrorClass
impl Debug for TckErrorClass
Source§impl Display for TckErrorClass
impl Display for TckErrorClass
impl Eq for TckErrorClass
Source§impl PartialEq for TckErrorClass
impl PartialEq for TckErrorClass
impl StructuralPartialEq for TckErrorClass
Auto Trait Implementations§
impl Forget for TckErrorClass
impl Freeze for TckErrorClass
impl Move for TckErrorClass
impl RefUnwindSafe for TckErrorClass
impl Send for TckErrorClass
impl Sync for TckErrorClass
impl Unpin for TckErrorClass
impl UnsafeUnpin for TckErrorClass
impl UnwindSafe for TckErrorClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.