pub enum DuckDbError {
DuckDb(Error),
Arrow(ArrowError),
Schema(CoreError),
Join(String),
Other(String),
}Expand description
Unified error type for crate::DuckDbEngine operations.
Implements std::error::Error via thiserror and can be converted from
several underlying error types using ?.
Variants§
DuckDb(Error)
A native DuckDB error returned by the C++ engine (query execution, connection, Appender flush, etc.).
Arrow(ArrowError)
An Arrow record-batch construction or schema mismatch error.
Schema(CoreError)
A schema validation error from rhei_core (e.g. invalid identifier
containing characters outside [A-Za-z0-9_]).
Join(String)
A tokio::task::spawn_blocking task panicked or was cancelled.
The inner string is the stringified tokio::task::JoinError.
Other(String)
A catch-all error for situations not covered by the variants above.
Trait Implementations§
Source§impl Debug for DuckDbError
impl Debug for DuckDbError
Source§impl Display for DuckDbError
impl Display for DuckDbError
Source§impl Error for DuckDbError
impl Error for DuckDbError
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<ArrowError> for DuckDbError
impl From<ArrowError> for DuckDbError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<CoreError> for DuckDbError
impl From<CoreError> for DuckDbError
Auto Trait Implementations§
impl Freeze for DuckDbError
impl !RefUnwindSafe for DuckDbError
impl Send for DuckDbError
impl Sync for DuckDbError
impl Unpin for DuckDbError
impl UnsafeUnpin for DuckDbError
impl !UnwindSafe for DuckDbError
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