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,
},
OffsetOverflow {
location: Location,
total_length: i64,
max_size: i32,
batch_size: usize,
},
DecodeProto {
location: Location,
source: DecodeError,
},
NoTypes {
location: Location,
},
UnsupportedTypeVariant {
location: Location,
msg: &'static str,
},
MismatchedSchema {
location: Location,
orc_type: DataType,
arrow_type: DataType,
},
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
OffsetOverflow
DecodeProto
NoTypes
UnsupportedTypeVariant
MismatchedSchema
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 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, __T1, __T2> IntoError<OrcError> for OffsetOverflowSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> IntoError<OrcError> for OffsetOverflowSnafu<__T0, __T1, __T2>
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 UnsafeUnpin 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
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> 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.