#[non_exhaustive]pub enum UniError {
Show 26 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,
},
}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
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> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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.