NativeBackendError

Enum NativeBackendError 

Source
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

Fields

§expected: u64
§found: u64
§

UnsupportedVersion

Fields

§version: u32
§supported_version: u32
§

InvalidHeader

Fields

§field: String
§reason: String
§

InvalidChecksum

Fields

§expected: u64
§found: u64
§

InvalidNodeId

§

InvalidEdgeId

§

CorruptNodeRecord

Fields

§reason: String
§

CorruptEdgeRecord

Fields

§reason: String
§

InconsistentAdjacency

Fields

§count: u32
§direction: String
§file_count: u32
§

FileTooSmall

Fields

§size: u64
§min_size: u64
§

RecordTooLarge

Fields

§size: u32
§max_size: u32
§

Utf8Error(FromUtf8Error)

§

JsonError(Error)

§

BincodeError(Box<ErrorKind>)

§

InvalidUtf8(Utf8Error)

§

BufferTooSmall

Fields

§size: usize
§min_size: usize
§

InvalidStringOffset

Fields

§offset: u32
§

CorruptStringTable

Fields

§reason: String
§

InvalidMagicBytes

Fields

§found: [u8; 8]
§

ValidationFailed

Fields

§metric: String
§expected: f64
§actual: f64
§

OutOfSpace

§

CorruptFreeSpace

Fields

§reason: String
§

TransactionRolledBack(String)

§

NodeNotFound

Fields

§operation: String
§

InvalidParameter

Fields

§context: String
§source: Option<Box<dyn Error + Send + Sync>>
§

InvalidState

Fields

§context: String
§source: Option<Box<dyn Error + Send + Sync>>
§

CorruptionDetected

Fields

§context: String
§source: Option<Box<dyn Error + Send + Sync>>
§

InvalidConfiguration

Fields

§parameter: String
§reason: String
§

VersionMismatch

Fields

§expected: String
§found: String
§source: Option<Box<dyn Error + Send + Sync>>
§

InvalidTransaction

Fields

§tx_id: u64
§reason: String
§

IoError

Fields

§context: String
§source: Error
§

Recovery(String)

§

NodeExists

Fields

§

EdgeExists

Fields

§

EdgeNotFound

Fields

§

TransactionNotFound

Fields

§tx_id: u64
§

SavepointNotFound

Fields

§savepoint_id: String
§

DeadlockDetected

Fields

§tx_id: u64
§conflicting_resources: Vec<i64>
§

InvalidTransactionState

Fields

§tx_id: u64
§state: String

Trait Implementations§

Source§

impl Debug for NativeBackendError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for NativeBackendError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for NativeBackendError

Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Box<ErrorKind>> for NativeBackendError

Source§

fn from(source: Box<ErrorKind>) -> Self

Converts to this type from the input type.
Source§

impl From<CheckpointError> for NativeBackendError

Source§

fn from(error: CheckpointError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for NativeBackendError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for NativeBackendError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FromUtf8Error> for NativeBackendError

Source§

fn from(source: FromUtf8Error) -> Self

Converts to this type from the input type.
Source§

impl From<NativeBackendError> for CheckpointError

Convert from NativeBackendError

Source§

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

Source§

fn from(error: NativeBackendError) -> Self

Converts to this type from the input type.
Source§

impl From<NativeBackendError> for SqliteGraphError

Source§

fn from(source: NativeBackendError) -> Self

Converts to this type from the input type.
Source§

impl From<RecoveryError> for NativeBackendError

Source§

fn from(error: RecoveryError) -> Self

Converts to this type from the input type.
Source§

impl From<SystemTimeError> for NativeBackendError

Source§

fn from(error: SystemTimeError) -> Self

Converts to this type from the input type.
Source§

impl From<Utf8Error> for NativeBackendError

Source§

fn from(source: Utf8Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V