pub enum Error {
Show 26 variants
InvalidInput {
source: Box<dyn Error + Send + Sync + 'static>,
location: Location,
},
DatasetAlreadyExists {
uri: String,
location: Location,
},
SchemaMismatch {
difference: String,
location: Location,
},
DatasetNotFound {
path: String,
source: Box<dyn Error + Send + Sync + 'static>,
location: Location,
},
CorruptFile {
path: Path,
source: Box<dyn Error + Send + Sync + 'static>,
location: Location,
},
NotSupported {
source: Box<dyn Error + Send + Sync + 'static>,
location: Location,
},
CommitConflict {
version: u64,
source: Box<dyn Error + Send + Sync + 'static>,
location: Location,
},
Internal {
message: String,
location: Location,
},
PrerequisiteFailed {
message: String,
location: Location,
},
Arrow {
message: String,
location: Location,
},
Schema {
message: String,
location: Location,
},
NotFound {
uri: String,
location: Location,
},
IO {
source: Box<dyn Error + Send + Sync + 'static>,
location: Location,
},
Index {
message: String,
location: Location,
},
IndexNotFound {
identity: String,
location: Location,
},
InvalidTableLocation {
message: String,
},
Stop,
Wrapped {
error: Box<dyn Error + Send + Sync + 'static>,
location: Location,
},
Cloned {
message: String,
location: Location,
},
Execution {
message: String,
location: Location,
},
InvalidRef {
message: String,
},
RefConflict {
message: String,
},
RefNotFound {
message: String,
},
Cleanup {
message: String,
},
VersionNotFound {
message: String,
},
VersionConflict {
message: String,
major_version: u16,
minor_version: u16,
location: Location,
},
}
Variants§
InvalidInput
DatasetAlreadyExists
SchemaMismatch
DatasetNotFound
CorruptFile
NotSupported
CommitConflict
Internal
PrerequisiteFailed
Arrow
Schema
NotFound
IO
Index
IndexNotFound
InvalidTableLocation
Stop
Stream early stop
Wrapped
Cloned
Execution
InvalidRef
RefConflict
RefNotFound
Cleanup
VersionNotFound
VersionConflict
Implementations§
Source§impl Error
impl Error
pub fn corrupt_file( path: Path, message: impl Into<String>, location: Location, ) -> Self
pub fn invalid_input(message: impl Into<String>, location: Location) -> Self
pub fn io(message: impl Into<String>, location: Location) -> Self
pub fn version_conflict( message: impl Into<String>, major_version: u16, minor_version: u16, location: Location, ) -> Self
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl ErrorCompat for Error
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<&ArrowError> for Error
impl From<&ArrowError> for Error
Source§fn from(e: &ArrowError) -> Self
fn from(e: &ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<ArrowError> for Error
impl From<ArrowError> for Error
Source§fn from(e: ArrowError) -> Self
fn from(e: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for Error
impl From<EncodeError> for Error
Source§fn from(e: EncodeError) -> Self
fn from(e: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ArrowError
impl From<Error> for ArrowError
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<UnknownEnumValue> for Error
impl From<UnknownEnumValue> for Error
Source§fn from(e: UnknownEnumValue) -> Self
fn from(e: UnknownEnumValue) -> Self
Converts to this type from the input type.
Source§impl<__T0> IntoError<Error> for ArrowSnafu<__T0>
impl<__T0> IntoError<Error> for ArrowSnafu<__T0>
Source§impl<__T0> IntoError<Error> for CleanupSnafu<__T0>
impl<__T0> IntoError<Error> for CleanupSnafu<__T0>
Source§impl<__T0> IntoError<Error> for ClonedSnafu<__T0>
impl<__T0> IntoError<Error> for ClonedSnafu<__T0>
Source§impl<__T0> IntoError<Error> for CommitConflictSnafu<__T0>
impl<__T0> IntoError<Error> for CommitConflictSnafu<__T0>
Source§impl<__T0> IntoError<Error> for CorruptFileSnafu<__T0>
impl<__T0> IntoError<Error> for CorruptFileSnafu<__T0>
Source§impl<__T0> IntoError<Error> for DatasetAlreadyExistsSnafu<__T0>
impl<__T0> IntoError<Error> for DatasetAlreadyExistsSnafu<__T0>
Source§impl<__T0> IntoError<Error> for DatasetNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for DatasetNotFoundSnafu<__T0>
Source§impl<__T0> IntoError<Error> for ExecutionSnafu<__T0>
impl<__T0> IntoError<Error> for ExecutionSnafu<__T0>
Source§impl<__T0> IntoError<Error> for IndexNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for IndexNotFoundSnafu<__T0>
Source§impl<__T0> IntoError<Error> for IndexSnafu<__T0>
impl<__T0> IntoError<Error> for IndexSnafu<__T0>
Source§impl<__T0> IntoError<Error> for InternalSnafu<__T0>
impl<__T0> IntoError<Error> for InternalSnafu<__T0>
Source§impl IntoError<Error> for InvalidInputSnafu
impl IntoError<Error> for InvalidInputSnafu
Source§impl<__T0> IntoError<Error> for InvalidRefSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidRefSnafu<__T0>
Source§impl<__T0> IntoError<Error> for InvalidTableLocationSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidTableLocationSnafu<__T0>
Source§impl<__T0> IntoError<Error> for NotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for NotFoundSnafu<__T0>
Source§impl IntoError<Error> for NotSupportedSnafu
impl IntoError<Error> for NotSupportedSnafu
Source§impl<__T0> IntoError<Error> for PrerequisiteFailedSnafu<__T0>
impl<__T0> IntoError<Error> for PrerequisiteFailedSnafu<__T0>
Source§impl<__T0> IntoError<Error> for RefConflictSnafu<__T0>
impl<__T0> IntoError<Error> for RefConflictSnafu<__T0>
Source§impl<__T0> IntoError<Error> for RefNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for RefNotFoundSnafu<__T0>
Source§impl<__T0> IntoError<Error> for SchemaMismatchSnafu<__T0>
impl<__T0> IntoError<Error> for SchemaMismatchSnafu<__T0>
Source§impl<__T0> IntoError<Error> for SchemaSnafu<__T0>
impl<__T0> IntoError<Error> for SchemaSnafu<__T0>
Source§impl<__T0, __T1, __T2> IntoError<Error> for VersionConflictSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> IntoError<Error> for VersionConflictSnafu<__T0, __T1, __T2>
Source§impl<__T0> IntoError<Error> for VersionNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for VersionNotFoundSnafu<__T0>
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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> 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