pub enum LoraErrorCode {
Show 25 variants
Parse,
Semantic,
InvalidParams,
ReadOnlyViolation,
NotFound,
ConstraintViolation,
InvalidVector,
Timeout,
DatabaseName,
Config,
Validation,
UniqueConstraint,
NotNullConstraint,
ForeignKeyViolation,
TransactionFailure,
Locked,
ChangesTruncated,
ChangesLagged,
Io,
Connection,
WalCorruption,
WalPoisoned,
SnapshotCodec,
SnapshotCrypto,
Internal,
}Expand description
Stable error-code catalog. The wire string returned by Self::as_str
is part of LoraDB’s public API. Consumers — bindings, the HTTP layer,
integration tests — should match on this rather than on the message
text, which is allowed to change between releases.
Variants§
Parse
Cypher syntax could not be parsed.
Semantic
Cypher analysis (unknown variable, label, function, type mismatch, …).
InvalidParams
A parameter value passed by the caller could not be coerced.
ReadOnlyViolation
A mutating statement was issued in a read-only context.
NotFound
A named entity (database, label, key) does not exist.
ConstraintViolation
A precondition (e.g. delete-with-relationships) is not satisfied.
InvalidVector
A vector value failed dimension / coordinate-type validation.
Timeout
A query exceeded its cooperative deadline.
DatabaseName
A logical database name violates the portable-path rules.
Config
Required parameters are missing or malformed (CLI / config flags).
Validation
A well-formed request failed database-layer validation.
UniqueConstraint
A uniqueness constraint rejected a duplicate value.
NotNullConstraint
A property-existence / NOT NULL constraint rejected missing data.
ForeignKeyViolation
A relationship or dependent record references a missing entity.
TransactionFailure
A transaction lifecycle rule was violated.
Locked
The database directory is held by another process or live handle.
ChangesTruncated
A change feed was asked to resume from an LSN the database no longer retains (or never produced).
ChangesLagged
A change feed subscriber fell further behind than its buffer allows; resume from the last LSN it processed.
Io
I/O failure outside the WAL / snapshot boundaries.
Connection
The database could not open or use its backing connection/handle.
WalCorruption
WAL record was truncated, mis-CRC’d, or otherwise unreadable.
WalPoisoned
The WAL is poisoned and no longer accepts durable writes.
SnapshotCodec
Snapshot codec failure (bad magic, version, checksum, …).
SnapshotCrypto
Snapshot encryption / decryption / KDF failure.
Internal
Last-resort fallback when the engine cannot classify the failure.
Implementations§
Source§impl LoraErrorCode
impl LoraErrorCode
Trait Implementations§
Source§impl Clone for LoraErrorCode
impl Clone for LoraErrorCode
impl Copy for LoraErrorCode
Source§impl Debug for LoraErrorCode
impl Debug for LoraErrorCode
Source§impl Display for LoraErrorCode
impl Display for LoraErrorCode
impl Eq for LoraErrorCode
Source§impl PartialEq for LoraErrorCode
impl PartialEq for LoraErrorCode
impl StructuralPartialEq for LoraErrorCode
Auto Trait Implementations§
impl Freeze for LoraErrorCode
impl RefUnwindSafe for LoraErrorCode
impl Send for LoraErrorCode
impl Sync for LoraErrorCode
impl Unpin for LoraErrorCode
impl UnsafeUnpin for LoraErrorCode
impl UnwindSafe for LoraErrorCode
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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