pub enum RypeError {
Io {
path: PathBuf,
operation: &'static str,
source: Error,
},
Format {
path: PathBuf,
detail: String,
},
Validation(String),
Parquet {
context: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
Encoding(String),
Overflow {
context: String,
limit: usize,
actual: usize,
},
}Expand description
Unified error type for the rype library.
Variants§
Io
I/O error with path context.
Format
Invalid file format (magic bytes, version, structure).
Validation(String)
Validation error (invalid parameters, data invariants).
Parquet
Parquet-specific error.
Encoding(String)
Encoding/decoding error (varint, delta encoding).
Overflow
Numeric overflow or size limit exceeded.
Implementations§
Source§impl RypeError
impl RypeError
Sourcepub fn io(
path: impl Into<PathBuf>,
operation: &'static str,
source: Error,
) -> Self
pub fn io( path: impl Into<PathBuf>, operation: &'static str, source: Error, ) -> Self
Create an I/O error with path context.
Sourcepub fn format(path: impl Into<PathBuf>, detail: impl Into<String>) -> Self
pub fn format(path: impl Into<PathBuf>, detail: impl Into<String>) -> Self
Create a format error.
Sourcepub fn validation(msg: impl Into<String>) -> Self
pub fn validation(msg: impl Into<String>) -> Self
Create a validation error.
Trait Implementations§
Source§impl Error for RypeError
impl Error for RypeError
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 RypeError
impl From<ArrowError> for RypeError
Source§fn from(err: ArrowError) -> Self
fn from(err: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<ParquetError> for RypeError
impl From<ParquetError> for RypeError
Source§fn from(err: ParquetError) -> Self
fn from(err: ParquetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RypeError
impl !RefUnwindSafe for RypeError
impl Send for RypeError
impl Sync for RypeError
impl Unpin for RypeError
impl UnsafeUnpin for RypeError
impl !UnwindSafe for RypeError
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
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>
Converts
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>
Converts
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 more