pub enum DbxError {
Show 30 variants
Storage(String),
Schema(String),
Arrow {
source: ArrowError,
},
Parquet {
source: ParquetError,
},
Sled {
source: Error,
},
Io {
source: Error,
},
TableNotFound(String),
KeyNotFound,
TypeMismatch {
expected: String,
actual: String,
},
ConstraintViolation(String),
Serialization(String),
NotImplemented(String),
SqlParse {
message: String,
sql: String,
},
SqlExecution {
message: String,
context: String,
},
SqlNotSupported {
feature: String,
hint: String,
},
TransactionConflict {
message: String,
},
TransactionAborted {
reason: String,
},
InvalidOperation {
message: String,
context: String,
},
IndexAlreadyExists {
table: String,
column: String,
},
IndexNotFound {
table: String,
column: String,
},
Wal(String),
CheckpointFailed(String),
RecoveryFailed(String),
Encryption(String),
Gpu(String),
CallableNotFound(String),
DuplicateCallable(String),
InvalidArguments(String),
LockPoisoned,
PerformanceRegression {
name: String,
baseline: f64,
current: f64,
ratio: f64,
},
}Expand description
Unified error type for all DBX operations.
Variants§
Storage(String)
Storage layer error (I/O, corruption, etc.)
Schema(String)
Schema definition or validation error
Arrow
Apache Arrow error (RecordBatch operations)
Fields
source: ArrowErrorParquet
Apache Parquet error (file I/O)
Fields
source: ParquetErrorSled
sled embedded database error
Io
Standard I/O error
TableNotFound(String)
Requested table does not exist
KeyNotFound
Requested key does not exist
TypeMismatch
Type mismatch between expected and actual values
ConstraintViolation(String)
Constraint violation (PK, FK, CHECK, etc.)
Serialization(String)
Serialization/deserialization error
NotImplemented(String)
Feature not yet implemented
SqlParse
SQL parsing error
SqlExecution
SQL execution error
SqlNotSupported
Unsupported SQL feature
TransactionConflict
Transaction conflict
TransactionAborted
Transaction aborted
InvalidOperation
Invalid operation
IndexAlreadyExists
Index already exists
IndexNotFound
Index not found
Wal(String)
WAL error
CheckpointFailed(String)
Checkpoint failed
RecoveryFailed(String)
Recovery failed
Encryption(String)
Encryption/decryption error
Gpu(String)
GPU operation error
CallableNotFound(String)
Callable not found
DuplicateCallable(String)
Duplicate callable registration
InvalidArguments(String)
Invalid arguments
LockPoisoned
Lock poisoned
PerformanceRegression
Performance regression detected
Trait Implementations§
Source§impl Error for DbxError
impl Error for DbxError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ArrowError> for DbxError
impl From<ArrowError> for DbxError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Source§impl From<ParquetError> for DbxError
impl From<ParquetError> for DbxError
Source§fn from(source: ParquetError) -> Self
fn from(source: ParquetError) -> Self
Auto Trait Implementations§
impl Freeze for DbxError
impl !RefUnwindSafe for DbxError
impl Send for DbxError
impl Sync for DbxError
impl Unpin for DbxError
impl UnsafeUnpin for DbxError
impl !UnwindSafe for DbxError
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> 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