#[non_exhaustive]pub enum DataFrameError {
ColumnNotFound(String),
LengthMismatch {
expected: usize,
actual: usize,
},
TypeMismatch {
column: String,
expected: DataType,
actual: DataType,
},
Empty,
Io(Error),
Json(Error),
IndexOutOfBounds {
index: usize,
length: usize,
},
JoinKeyMismatch {
left_count: usize,
right_count: usize,
},
Other(String),
}Expand description
All errors produced by nexcore-dataframe operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ColumnNotFound(String)
Named column was not found in the DataFrame.
LengthMismatch
Column lengths don’t match during DataFrame construction.
TypeMismatch
Column has wrong type for the requested operation.
Empty
Operation requires a non-empty DataFrame.
Io(Error)
I/O error during read/write.
Json(Error)
JSON serialization/deserialization error.
IndexOutOfBounds
Index out of bounds.
JoinKeyMismatch
Join key column count mismatch between left and right tables.
Other(String)
General error with message.
Trait Implementations§
Source§impl Debug for DataFrameError
impl Debug for DataFrameError
Source§impl Display for DataFrameError
impl Display for DataFrameError
Source§impl Error for DataFrameError
impl Error for DataFrameError
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<Error> for DataFrameError
impl From<Error> for DataFrameError
Auto Trait Implementations§
impl Freeze for DataFrameError
impl !RefUnwindSafe for DataFrameError
impl Send for DataFrameError
impl Sync for DataFrameError
impl Unpin for DataFrameError
impl UnsafeUnpin for DataFrameError
impl !UnwindSafe for DataFrameError
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