#[non_exhaustive]pub enum UniError {
Show 33 variants
NotFound {
path: PathBuf,
},
Schema {
message: String,
},
Parse {
message: String,
position: Option<usize>,
line: Option<usize>,
column: Option<usize>,
context: Option<String>,
},
Query {
message: String,
query: Option<String>,
},
Transaction {
message: String,
},
TransactionConflict {
message: String,
},
TransactionAlreadyCompleted,
ReadOnly {
operation: String,
},
LabelNotFound {
label: String,
},
EdgeTypeNotFound {
edge_type: String,
},
PropertyNotFound {
property: String,
entity_type: String,
label: String,
},
IndexNotFound {
index: String,
},
SnapshotNotFound {
snapshot_id: String,
},
MemoryLimitExceeded {
limit_bytes: usize,
},
DatabaseLocked,
Timeout {
timeout_ms: u64,
},
Type {
expected: String,
actual: String,
},
Constraint {
message: String,
},
Storage {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
Io(Error),
Internal(Error),
InvalidIdentifier {
name: String,
reason: String,
},
LabelAlreadyExists {
label: String,
},
EdgeTypeAlreadyExists {
edge_type: String,
},
PermissionDenied {
action: String,
},
InvalidArgument {
arg: String,
message: String,
},
WriteContextAlreadyActive {
session_id: String,
hint: &'static str,
},
CommitTimeout {
tx_id: String,
hint: &'static str,
},
TransactionExpired {
tx_id: String,
hint: &'static str,
},
Cancelled,
StaleDerivedFacts {
version_gap: u64,
},
RuleConflict {
rule_name: String,
},
HookRejected {
message: String,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotFound
Schema
Parse
Fields
Query
Transaction
TransactionConflict
TransactionAlreadyCompleted
ReadOnly
Operation not supported on read-only database
LabelNotFound
Label not found in schema
EdgeTypeNotFound
Edge type not found in schema
PropertyNotFound
Property not found on node/edge
IndexNotFound
Index not found
SnapshotNotFound
Snapshot not found
MemoryLimitExceeded
Query memory limit exceeded
DatabaseLocked
Timeout
Type
Constraint
Storage
Io(Error)
Internal(Error)
InvalidIdentifier
LabelAlreadyExists
EdgeTypeAlreadyExists
PermissionDenied
InvalidArgument
WriteContextAlreadyActive
Write context (transaction, bulk writer, or appender) is already active on session.
CommitTimeout
Transaction commit timed out waiting for the global writer lock.
TransactionExpired
Transaction exceeded its deadline.
Cancelled
Operation was cancelled via a cancellation token.
StaleDerivedFacts
Derived facts are stale relative to the current database version.
RuleConflict
A Locy rule conflict was detected during transaction commit rule promotion.
HookRejected
A session hook rejected the operation.
Trait Implementations§
Source§impl Error for UniError
impl Error for UniError
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()
Auto Trait Implementations§
impl Freeze for UniError
impl !RefUnwindSafe for UniError
impl Send for UniError
impl Sync for UniError
impl Unpin for UniError
impl UnsafeUnpin for UniError
impl !UnwindSafe for UniError
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> 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>
Converts
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>
Converts
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.