pub enum OrcError {
Show 18 variants
IoError {
source: Error,
location: Location,
},
EmptyFile {
location: Location,
},
OutOfSpec {
msg: String,
location: Location,
},
DecodeFloat {
location: Location,
source: Error,
},
DecodeTimestamp {
location: Location,
seconds: i64,
nanoseconds: u64,
to_time_unit: TimeUnit,
},
DecodeProto {
location: Location,
source: DecodeError,
},
NoTypes {
location: Location,
},
UnsupportedTypeVariant {
location: Location,
msg: &'static str,
},
MismatchedSchema {
location: Location,
orc_type: DataType,
arrow_type: DataType,
},
InvalidColumnEncoding {
location: Location,
name: String,
encoding: Kind,
},
ConvertRecordBatch {
location: Location,
source: ArrowError,
},
VarintTooLarge {
location: Location,
},
Unexpected {
location: Location,
msg: String,
},
BuildZstdDecoder {
location: Location,
source: Error,
},
BuildSnappyDecoder {
location: Location,
source: Error,
},
BuildLzoDecoder {
location: Location,
source: Error,
},
BuildLz4Decoder {
location: Location,
source: DecompressError,
},
Arrow {
source: ArrowError,
location: Location,
},
}
Variants§
IoError
EmptyFile
OutOfSpec
DecodeFloat
DecodeTimestamp
DecodeProto
NoTypes
UnsupportedTypeVariant
MismatchedSchema
InvalidColumnEncoding
ConvertRecordBatch
VarintTooLarge
Unexpected
BuildZstdDecoder
BuildSnappyDecoder
BuildLzoDecoder
BuildLz4Decoder
Arrow
Trait Implementations§
Source§impl Error for OrcError
impl Error for OrcError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for OrcError
impl ErrorCompat for OrcError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl From<OrcError> for ArrowError
impl From<OrcError> for ArrowError
Source§impl IntoError<OrcError> for ArrowSnafu
impl IntoError<OrcError> for ArrowSnafu
Source§type Source = ArrowError
type Source = ArrowError
The underlying error
Source§fn into_error(self, error: Self::Source) -> OrcError
fn into_error(self, error: Self::Source) -> OrcError
Combine the information to produce the error
Source§impl IntoError<OrcError> for BuildLz4DecoderSnafu
impl IntoError<OrcError> for BuildLz4DecoderSnafu
Source§type Source = DecompressError
type Source = DecompressError
The underlying error
Source§fn into_error(self, error: Self::Source) -> OrcError
fn into_error(self, error: Self::Source) -> OrcError
Combine the information to produce the error
Source§impl IntoError<OrcError> for BuildLzoDecoderSnafu
impl IntoError<OrcError> for BuildLzoDecoderSnafu
Source§impl IntoError<OrcError> for BuildSnappyDecoderSnafu
impl IntoError<OrcError> for BuildSnappyDecoderSnafu
Source§impl IntoError<OrcError> for BuildZstdDecoderSnafu
impl IntoError<OrcError> for BuildZstdDecoderSnafu
Source§impl IntoError<OrcError> for ConvertRecordBatchSnafu
impl IntoError<OrcError> for ConvertRecordBatchSnafu
Source§type Source = ArrowError
type Source = ArrowError
The underlying error
Source§fn into_error(self, error: Self::Source) -> OrcError
fn into_error(self, error: Self::Source) -> OrcError
Combine the information to produce the error
Source§impl IntoError<OrcError> for DecodeFloatSnafu
impl IntoError<OrcError> for DecodeFloatSnafu
Source§impl IntoError<OrcError> for DecodeProtoSnafu
impl IntoError<OrcError> for DecodeProtoSnafu
Source§type Source = DecodeError
type Source = DecodeError
The underlying error
Source§fn into_error(self, error: Self::Source) -> OrcError
fn into_error(self, error: Self::Source) -> OrcError
Combine the information to produce the error
Source§impl<__T0, __T1, __T2> IntoError<OrcError> for DecodeTimestampSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> IntoError<OrcError> for DecodeTimestampSnafu<__T0, __T1, __T2>
Source§impl IntoError<OrcError> for EmptyFileSnafu
impl IntoError<OrcError> for EmptyFileSnafu
Source§impl<__T0, __T1> IntoError<OrcError> for InvalidColumnEncodingSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<OrcError> for InvalidColumnEncodingSnafu<__T0, __T1>
Source§impl<__T0, __T1> IntoError<OrcError> for MismatchedSchemaSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<OrcError> for MismatchedSchemaSnafu<__T0, __T1>
Source§impl IntoError<OrcError> for NoTypesSnafu
impl IntoError<OrcError> for NoTypesSnafu
Source§impl<__T0> IntoError<OrcError> for OutOfSpecSnafu<__T0>
impl<__T0> IntoError<OrcError> for OutOfSpecSnafu<__T0>
Source§impl<__T0> IntoError<OrcError> for UnexpectedSnafu<__T0>
impl<__T0> IntoError<OrcError> for UnexpectedSnafu<__T0>
Source§impl<__T0> IntoError<OrcError> for UnsupportedTypeVariantSnafu<__T0>
impl<__T0> IntoError<OrcError> for UnsupportedTypeVariantSnafu<__T0>
Auto Trait Implementations§
impl Freeze for OrcError
impl !RefUnwindSafe for OrcError
impl Send for OrcError
impl Sync for OrcError
impl Unpin for OrcError
impl !UnwindSafe for OrcError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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