pub enum DataFrameError {
Io {
source: Error,
path: Option<PathBuf>,
},
SchemaMismatch {
message: String,
},
TypeMismatch {
column: Option<String>,
expected: String,
actual: String,
},
ColumnNotFound {
name: String,
},
InvalidOperation {
message: String,
},
Configuration {
option: String,
message: String,
},
Arrow {
source: ArrowError,
},
Parquet {
source: ParquetError,
},
}Expand description
Re-export of the crate error type and result alias.
Errors returned by alopex-dataframe operations.
Variants§
Io
OS-level I/O error (optionally associated with a path).
SchemaMismatch
Arrow schema-related mismatch (e.g. different schema across batches).
TypeMismatch
Data type mismatch (e.g. non-numeric aggregation or incompatible dtypes).
ColumnNotFound
Referenced column does not exist.
InvalidOperation
Operation is not supported or invalid for the current inputs.
Configuration
Invalid configuration option was provided.
Arrow
Error originating from Arrow compute / record batch APIs.
Fields
§
source: ArrowErrorParquet
Error originating from Parquet APIs.
Fields
§
source: ParquetErrorImplementations§
Source§impl DataFrameError
impl DataFrameError
Sourcepub fn io_with_path(source: Error, path: impl Into<PathBuf>) -> Self
pub fn io_with_path(source: Error, path: impl Into<PathBuf>) -> Self
Create an I/O error associated with a path.
Sourcepub fn schema_mismatch(message: impl Into<String>) -> Self
pub fn schema_mismatch(message: impl Into<String>) -> Self
Create a schema mismatch error with a message.
Sourcepub fn type_mismatch(
column: impl Into<Option<String>>,
expected: impl Into<String>,
actual: impl Into<String>,
) -> Self
pub fn type_mismatch( column: impl Into<Option<String>>, expected: impl Into<String>, actual: impl Into<String>, ) -> Self
Create a type mismatch error with optional column context.
Sourcepub fn column_not_found(name: impl Into<String>) -> Self
pub fn column_not_found(name: impl Into<String>) -> Self
Create a missing column error.
Sourcepub fn invalid_operation(message: impl Into<String>) -> Self
pub fn invalid_operation(message: impl Into<String>) -> Self
Create an invalid operation error.
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()
Auto Trait Implementations§
impl Freeze for DataFrameError
impl !RefUnwindSafe for DataFrameError
impl Send for DataFrameError
impl Sync for DataFrameError
impl Unpin 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