#[non_exhaustive]pub enum ReadStatError {
Show 13 variants
CLibrary(ReadStatCError),
UnknownCError(i32),
DateOverflow,
IntConversion(TryFromIntError),
Arrow(ArrowError),
Parquet(ParquetError),
Io(Error),
PathAbs(Error),
SerdeJson(Error),
Rayon(ThreadPoolBuildError),
NulError(NulError),
ColumnsNotFound {
requested: Vec<String>,
available: Vec<String>,
},
Other(String),
}Expand description
The main error type for the readstat crate.
Wraps errors from the ReadStat C library, Arrow/Parquet processing,
I/O operations, and other subsystems into a single error enum.
This enum is #[non_exhaustive]: new variants may be added in minor
releases without a semver-breaking change. Match with a wildcard arm
(_ => ...) to remain forward-compatible.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CLibrary(ReadStatCError)
Error from the ReadStat C library.
UnknownCError(i32)
Unrecognized C error code not mapped to ReadStatCError.
DateOverflow
Arithmetic overflow during SAS-to-Unix epoch date/time conversion.
IntConversion(TryFromIntError)
Integer conversion error (e.g. u32 to i32 overflow).
Arrow(ArrowError)
Error from the Arrow library.
Parquet(ParquetError)
Error from the Parquet library.
Io(Error)
I/O error.
PathAbs(Error)
Path resolution error.
SerdeJson(Error)
JSON serialization/deserialization error.
Rayon(ThreadPoolBuildError)
Rayon thread pool build error.
NulError(NulError)
Null byte found in a string intended for C FFI.
ColumnsNotFound
One or more specified column names were not found in the dataset.
Fields
Other(String)
Catch-all error with a custom message.
Trait Implementations§
Source§impl Debug for ReadStatError
impl Debug for ReadStatError
Source§impl Display for ReadStatError
impl Display for ReadStatError
Source§impl Error for ReadStatError
impl Error for ReadStatError
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
Source§impl From<ArrowError> for ReadStatError
impl From<ArrowError> for ReadStatError
Source§impl From<Error> for ReadStatError
impl From<Error> for ReadStatError
Source§impl From<Error> for ReadStatError
impl From<Error> for ReadStatError
Source§impl From<Error> for ReadStatError
impl From<Error> for ReadStatError
Source§impl From<NulError> for ReadStatError
impl From<NulError> for ReadStatError
Source§impl From<ParquetError> for ReadStatError
impl From<ParquetError> for ReadStatError
Source§impl From<ThreadPoolBuildError> for ReadStatError
impl From<ThreadPoolBuildError> for ReadStatError
Source§impl From<TryFromIntError> for ReadStatError
impl From<TryFromIntError> for ReadStatError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Auto Trait Implementations§
impl Freeze for ReadStatError
impl !RefUnwindSafe for ReadStatError
impl Send for ReadStatError
impl Sync for ReadStatError
impl Unpin for ReadStatError
impl UnsafeUnpin for ReadStatError
impl !UnwindSafe for ReadStatError
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> 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 more