#[non_exhaustive]pub enum Error {
Show 20 variants
Io {
path: Option<PathBuf>,
source: Error,
},
Arrow(ArrowError),
Parquet(ParquetError),
IndexOutOfBounds {
index: usize,
len: usize,
},
ColumnNotFound {
name: String,
},
InvalidConfig {
message: String,
},
UnsupportedFormat {
format: String,
},
EmptyDataset,
SchemaMismatch {
message: String,
},
Storage {
message: String,
},
Transform {
message: String,
},
Parse {
message: String,
},
Data {
message: String,
},
Format(String),
ChecksumMismatch {
expected: u32,
actual: u32,
},
LicenseExpired {
expired_at: u64,
current_time: u64,
},
SignatureInvalid,
DecryptionFailed,
NotFound(String),
InvalidFormat(String),
}Expand description
Errors that can occur in alimentar operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io
I/O error during file operations.
Fields
Arrow(ArrowError)
Arrow error during data processing.
Parquet(ParquetError)
Parquet error during file operations.
IndexOutOfBounds
Index out of bounds when accessing dataset.
ColumnNotFound
Column not found in schema.
InvalidConfig
Invalid configuration.
UnsupportedFormat
Unsupported file format.
EmptyDataset
Empty dataset error.
SchemaMismatch
Schema mismatch between datasets or batches.
Storage
Backend storage error.
Transform
Transform error.
Parse
Parse error.
Data
Data error.
Format(String)
Format error (header, checksum, etc.).
ChecksumMismatch
Checksum mismatch.
LicenseExpired
License has expired.
Fields
SignatureInvalid
Signature verification failed.
DecryptionFailed
Decryption failed.
NotFound(String)
Resource not found.
InvalidFormat(String)
Invalid format for output/conversion.
Implementations§
Source§impl Error
impl Error
Sourcepub fn io(source: Error, path: impl Into<PathBuf>) -> Self
pub fn io(source: Error, path: impl Into<PathBuf>) -> Self
Create an I/O error with a path context.
Sourcepub fn io_no_path(source: Error) -> Self
pub fn io_no_path(source: Error) -> Self
Create an I/O error without path context.
Sourcepub fn column_not_found(name: impl Into<String>) -> Self
pub fn column_not_found(name: impl Into<String>) -> Self
Create a column not found error.
Sourcepub fn invalid_config(message: impl Into<String>) -> Self
pub fn invalid_config(message: impl Into<String>) -> Self
Create an invalid configuration error.
Sourcepub fn unsupported_format(format: impl Into<String>) -> Self
pub fn unsupported_format(format: impl Into<String>) -> Self
Create an unsupported format error.
Sourcepub fn schema_mismatch(message: impl Into<String>) -> Self
pub fn schema_mismatch(message: impl Into<String>) -> Self
Create a schema mismatch error.
Sourcepub fn empty_dataset(_name: &str) -> Self
pub fn empty_dataset(_name: &str) -> Self
Create an empty dataset error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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
use the Display impl or to_string()
Source§impl From<ArrowError> for Error
impl From<ArrowError> for Error
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Source§impl From<ParquetError> for Error
impl From<ParquetError> for Error
Source§fn from(source: ParquetError) -> Self
fn from(source: ParquetError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.