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 From<OrcError> for DataFusionError
impl From<OrcError> for DataFusionError
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> 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
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>
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