pub enum ErrorKind {
Show 89 variants
SyntaxError,
UnexpectedSyntax,
IncompleteQuery,
InvalidPatternCharacter,
InvalidLabelExpression,
InvalidNodePatternPredicate,
InvalidClauseComposition,
InvalidAggregation,
AmbiguousAggregationExpression,
NestedAggregation,
NegativeIntegerArgument,
NoSingleRelationshipType,
DifferentColumnsInUnion,
VariableAlreadyBound,
VariableAlreadyDefined,
VariableTypeConflict,
VariableShadowing,
UndefinedVariable,
UnknownFunction,
NoExpressionAlias,
NoVariablesInScope,
RelationshipUniquenessViolation,
CreatingVarLength,
RequiresDirectedRelationship,
InvalidParameterUse,
ColumnNameConflict,
QuantifiedPathPatternNotSupported,
InvalidSelectivePathPatternDependency,
GroupVariableReuse,
SingletonReusedAsGroup,
NonLocalGroupVariableReference,
GroupVariableInNonAggregatingOperation,
InvalidSearchVariableReference,
SelfReferencingSearch,
InvalidUseOfCommand,
InvalidPlacementOfUseClause,
UseClauseWithAdministrationCommand,
InvalidUpdatingClauseInCountSubquery,
InvalidUpdatingClauseInCollectSubquery,
NonConstantExpression,
NonDeterministicDisjointBy,
InvalidShortestPathMixing,
InvalidShowColumn,
InvalidNumberOfArguments,
TraversalDepthExceeded,
SafeModeViolation,
IntegerOverflow,
FloatingPointOverflow,
InvalidNumberLiteral,
InvalidUnicodeLiteral,
InvalidUnicodeCharacter,
InvalidRelationshipPattern,
InvalidArgumentPassingMode,
InvalidDelete,
TypeError,
InvalidArgumentType,
InvalidConcatenationOperand,
ParameterWrongTypeException,
InvalidPropertyType,
InvalidPropertyValueType,
MapElementAccessByNonString,
ArgumentError,
InvalidArgumentValue,
ArithmeticError,
NumberOutOfRange,
NestedEvaluationBudgetExceeded,
WalkBudgetExceeded,
ValueDepthExceeded,
ParameterMissing,
EntityNotFound,
DeletedEntityAccess,
ConstraintViolation,
DeleteConnectedNode,
ProcedureError,
ProcedureNotFound,
SchemaError,
MergeReadOwnWrites,
DataException,
DataError,
DatabaseNotFound,
DatabaseExists,
DatabaseError,
SystemDatabaseRequired,
GraphTypeNotFound,
InternalError,
TransactionError,
UnsupportedAdministrationCommand,
WriteOnReadOnlyAccessDatabase,
Uncategorized,
}Expand description
The specific, TCK-aligned name of an engine error. kind() returns
the most specific name available; nested detail (e.g. the
UnsupportedIndexOrConstraint in "SyntaxError: UnsupportedIndexOrConstraint: …") stays in the message.
Variants§
SyntaxError
UnexpectedSyntax
IncompleteQuery
InvalidPatternCharacter
InvalidLabelExpression
InvalidNodePatternPredicate
InvalidClauseComposition
InvalidAggregation
AmbiguousAggregationExpression
NestedAggregation
NegativeIntegerArgument
NoSingleRelationshipType
DifferentColumnsInUnion
VariableAlreadyBound
VariableAlreadyDefined
VariableTypeConflict
VariableShadowing
UndefinedVariable
UnknownFunction
NoExpressionAlias
NoVariablesInScope
RelationshipUniquenessViolation
CreatingVarLength
RequiresDirectedRelationship
InvalidParameterUse
ColumnNameConflict
QuantifiedPathPatternNotSupported
InvalidSelectivePathPatternDependency
GroupVariableReuse
SingletonReusedAsGroup
NonLocalGroupVariableReference
GroupVariableInNonAggregatingOperation
InvalidSearchVariableReference
SelfReferencingSearch
InvalidUseOfCommand
InvalidPlacementOfUseClause
UseClauseWithAdministrationCommand
InvalidUpdatingClauseInCountSubquery
InvalidUpdatingClauseInCollectSubquery
NonConstantExpression
NonDeterministicDisjointBy
InvalidShortestPathMixing
InvalidShowColumn
InvalidNumberOfArguments
TraversalDepthExceeded
SafeModeViolation
IntegerOverflow
FloatingPointOverflow
InvalidNumberLiteral
InvalidUnicodeLiteral
InvalidUnicodeCharacter
InvalidRelationshipPattern
InvalidArgumentPassingMode
InvalidDelete
TypeError
InvalidArgumentType
InvalidConcatenationOperand
ParameterWrongTypeException
InvalidPropertyType
InvalidPropertyValueType
MapElementAccessByNonString
ArgumentError
InvalidArgumentValue
ArithmeticError
NumberOutOfRange
NestedEvaluationBudgetExceeded
WalkBudgetExceeded
ValueDepthExceeded
ParameterMissing
EntityNotFound
DeletedEntityAccess
ConstraintViolation
DeleteConnectedNode
ProcedureError
ProcedureNotFound
SchemaError
MergeReadOwnWrites
DataException
DataError
DatabaseNotFound
DatabaseExists
DatabaseError
SystemDatabaseRequired
GraphTypeNotFound
InternalError
TransactionError
UnsupportedAdministrationCommand
WriteOnReadOnlyAccessDatabase
Uncategorized
Escape hatch for legacy/opaque errors with no recognized kind prefix. Renders without a prefix so the raw message shows through byte-for-byte.
Implementations§
Source§impl ErrorKind
impl ErrorKind
Sourcepub const ALL: &'static [ErrorKind]
pub const ALL: &'static [ErrorKind]
Every non-Uncategorized kind, in declaration order —
generated from the same list, so coverage tests iterate the
vocabulary itself rather than a hand copy.
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
The canonical string form of this kind — the inverse of
ErrorKind::from_name for every non-Uncategorized variant.
Sourcepub fn from_name(name: &str) -> Option<ErrorKind>
pub fn from_name(name: &str) -> Option<ErrorKind>
Parses a kind name back into an ErrorKind. Returns None
for unrecognized names (including "Uncategorized", which is
never produced by parsing).
Sourcepub fn tck_class(&self) -> TckErrorClass
pub fn tck_class(&self) -> TckErrorClass
The openCypher TCK error class this kind belongs to. Total over every variant.
Source§impl ErrorKind
impl ErrorKind
Sourcepub fn tck_detail(&self) -> &'static str
pub fn tck_detail(&self) -> &'static str
The openCypher-TCK error detail name for this kind — what the harness
compares against the <Detail> slot of a <Class> should be raised at <phase>: <Detail>. Equal to ErrorKind::as_str for every kind except
the aliased ones below. Never used for Display.
Currently one alias exists:
ErrorKind variant | Display / as_str | TCK detail (tck_detail) |
|---|---|---|
ErrorKind::ParameterMissing | ParameterMissing | MissingParameter |
Sourcepub fn from_tck_detail(name: &str) -> Option<ErrorKind>
pub fn from_tck_detail(name: &str) -> Option<ErrorKind>
Parses a TCK error-detail name into an ErrorKind — the inverse of
ErrorKind::tck_detail. Handles the aliases first, then delegates to
ErrorKind::from_name. Returns None for unrecognized names.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Forget for ErrorKind
impl Freeze for ErrorKind
impl Move for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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> 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
key and return true if they are equal.