pub enum NativeBackendError {
Show 40 variants
Io(Error),
InvalidMagic {
expected: u64,
found: u64,
},
UnsupportedVersion {
version: u32,
supported_version: u32,
},
InvalidHeader {
field: String,
reason: String,
},
InvalidChecksum {
expected: u64,
found: u64,
},
InvalidNodeId {
id: NativeNodeId,
max_id: NativeNodeId,
},
InvalidEdgeId {
id: NativeEdgeId,
max_id: NativeEdgeId,
},
CorruptNodeRecord {
node_id: NativeNodeId,
reason: String,
},
CorruptEdgeRecord {
edge_id: NativeEdgeId,
reason: String,
},
InconsistentAdjacency {
node_id: NativeNodeId,
count: u32,
direction: String,
file_count: u32,
},
FileTooSmall {
size: u64,
min_size: u64,
},
RecordTooLarge {
size: u32,
max_size: u32,
},
Utf8Error(FromUtf8Error),
JsonError(Error),
BincodeError(Box<ErrorKind>),
InvalidUtf8(Utf8Error),
BufferTooSmall {
size: usize,
min_size: usize,
},
InvalidStringOffset {
offset: u32,
},
CorruptStringTable {
reason: String,
},
InvalidMagicBytes {
found: [u8; 8],
},
ValidationFailed {
metric: String,
expected: f64,
actual: f64,
},
OutOfSpace,
CorruptFreeSpace {
reason: String,
},
TransactionRolledBack(String),
NodeNotFound {
node_id: NativeNodeId,
operation: String,
},
InvalidParameter {
context: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
InvalidState {
context: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
CorruptionDetected {
context: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
InvalidConfiguration {
parameter: String,
reason: String,
},
VersionMismatch {
expected: String,
found: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
InvalidTransaction {
tx_id: u64,
reason: String,
},
IoError {
context: String,
source: Error,
},
Recovery(String),
NodeExists {
node_id: NativeNodeId,
},
EdgeExists {
edge_id: NativeEdgeId,
},
EdgeNotFound {
edge_id: NativeEdgeId,
},
TransactionNotFound {
tx_id: u64,
},
SavepointNotFound {
savepoint_id: String,
},
DeadlockDetected {
tx_id: u64,
conflicting_resources: Vec<i64>,
},
InvalidTransactionState {
tx_id: u64,
state: String,
},
}Expand description
Comprehensive error type for native backend operations
Variants§
Io(Error)
InvalidMagic
UnsupportedVersion
InvalidHeader
InvalidChecksum
InvalidNodeId
InvalidEdgeId
CorruptNodeRecord
CorruptEdgeRecord
InconsistentAdjacency
FileTooSmall
RecordTooLarge
Utf8Error(FromUtf8Error)
JsonError(Error)
BincodeError(Box<ErrorKind>)
InvalidUtf8(Utf8Error)
BufferTooSmall
InvalidStringOffset
CorruptStringTable
InvalidMagicBytes
ValidationFailed
OutOfSpace
CorruptFreeSpace
TransactionRolledBack(String)
NodeNotFound
InvalidParameter
InvalidState
CorruptionDetected
InvalidConfiguration
VersionMismatch
InvalidTransaction
IoError
Recovery(String)
NodeExists
Fields
§
node_id: NativeNodeIdEdgeExists
Fields
§
edge_id: NativeEdgeIdEdgeNotFound
Fields
§
edge_id: NativeEdgeIdTransactionNotFound
SavepointNotFound
DeadlockDetected
InvalidTransactionState
Trait Implementations§
Source§impl Debug for NativeBackendError
impl Debug for NativeBackendError
Source§impl Display for NativeBackendError
impl Display for NativeBackendError
Source§impl Error for NativeBackendError
impl Error for NativeBackendError
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()
Source§impl From<CheckpointError> for NativeBackendError
impl From<CheckpointError> for NativeBackendError
Source§fn from(error: CheckpointError) -> Self
fn from(error: CheckpointError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for NativeBackendError
impl From<Error> for NativeBackendError
Source§impl From<Error> for NativeBackendError
impl From<Error> for NativeBackendError
Source§impl From<FromUtf8Error> for NativeBackendError
impl From<FromUtf8Error> for NativeBackendError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<NativeBackendError> for CheckpointError
Convert from NativeBackendError
impl From<NativeBackendError> for CheckpointError
Convert from NativeBackendError
Source§fn from(error: NativeBackendError) -> Self
fn from(error: NativeBackendError) -> Self
Converts to this type from the input type.
Source§impl From<NativeBackendError> for RecoveryError
Convert from NativeBackendError for backward compatibility
impl From<NativeBackendError> for RecoveryError
Convert from NativeBackendError for backward compatibility
Source§fn from(error: NativeBackendError) -> Self
fn from(error: NativeBackendError) -> Self
Converts to this type from the input type.
Source§impl From<NativeBackendError> for SqliteGraphError
impl From<NativeBackendError> for SqliteGraphError
Source§fn from(source: NativeBackendError) -> Self
fn from(source: NativeBackendError) -> Self
Converts to this type from the input type.
Source§impl From<RecoveryError> for NativeBackendError
impl From<RecoveryError> for NativeBackendError
Source§fn from(error: RecoveryError) -> Self
fn from(error: RecoveryError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for NativeBackendError
impl From<SystemTimeError> for NativeBackendError
Source§fn from(error: SystemTimeError) -> Self
fn from(error: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NativeBackendError
impl !RefUnwindSafe for NativeBackendError
impl Send for NativeBackendError
impl Sync for NativeBackendError
impl Unpin for NativeBackendError
impl !UnwindSafe for NativeBackendError
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