pub enum DynError {
ArityMismatch {
expected: usize,
got: usize,
},
Nullability {
col: usize,
path: String,
index: usize,
message: String,
},
TypeMismatch {
col: usize,
expected: DataType,
},
Builder {
message: String,
},
Append {
col: usize,
message: String,
},
}
Expand description
Errors that can occur when appending dynamic rows/cells.
Variants§
ArityMismatch
The number of cells in a row did not match the schema width.
Fields
Nullability
Post-build nullability violation detected by the validator.
Fields
TypeMismatch
A cell’s Rust value did not match the target Arrow DataType
for a column.
Fields
Builder
The underlying Arrow builder reported an error while appending a value.
Append
Append failed at a specific column with a message.
Implementations§
Trait Implementations§
Source§impl Error for DynError
impl Error for DynError
1.30.0 · 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 DynError
impl RefUnwindSafe for DynError
impl Send for DynError
impl Sync for DynError
impl Unpin for DynError
impl UnwindSafe for DynError
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