pub enum NamespaceError {
Show 21 variants
Unsupported {
message: String,
},
NamespaceNotFound {
message: String,
},
NamespaceAlreadyExists {
message: String,
},
NamespaceNotEmpty {
message: String,
},
TableNotFound {
message: String,
},
TableAlreadyExists {
message: String,
},
TableIndexNotFound {
message: String,
},
TableIndexAlreadyExists {
message: String,
},
TableTagNotFound {
message: String,
},
TableTagAlreadyExists {
message: String,
},
TransactionNotFound {
message: String,
},
TableVersionNotFound {
message: String,
},
TableColumnNotFound {
message: String,
},
InvalidInput {
message: String,
},
ConcurrentModification {
message: String,
},
PermissionDenied {
message: String,
},
Unauthenticated {
message: String,
},
ServiceUnavailable {
message: String,
},
Internal {
message: String,
},
InvalidTableState {
message: String,
},
TableSchemaValidationError {
message: String,
},
}Expand description
Lance Namespace error type.
This enum provides fine-grained error types for Lance Namespace operations.
Each variant corresponds to a specific error condition and has an associated
ErrorCode accessible via the code() method.
§Converting to lance_core::Error
NamespaceError implements Into<lance_core::Error>, preserving the original
error so it can be downcast later:
let ns_err = NamespaceError::TableNotFound { message: "...".into() };
let lance_err: lance_core::Error = ns_err.into();
// Later, extract the original error:
if let lance_core::Error::Namespace { source, .. } = &lance_err {
if let Some(ns_err) = source.downcast_ref::<NamespaceError>() {
println!("Error code: {:?}", ns_err.code());
}
}Variants§
Unsupported
Operation not supported by this backend.
NamespaceNotFound
The specified namespace does not exist.
NamespaceAlreadyExists
A namespace with this name already exists.
NamespaceNotEmpty
Namespace contains tables or child namespaces.
TableNotFound
The specified table does not exist.
TableAlreadyExists
A table with this name already exists.
TableIndexNotFound
The specified table index does not exist.
TableIndexAlreadyExists
A table index with this name already exists.
TableTagNotFound
The specified table tag does not exist.
TableTagAlreadyExists
A table tag with this name already exists.
TransactionNotFound
The specified transaction does not exist.
TableVersionNotFound
The specified table version does not exist.
TableColumnNotFound
The specified table column does not exist.
InvalidInput
Malformed request or invalid parameters.
ConcurrentModification
Optimistic concurrency conflict.
PermissionDenied
User lacks permission for this operation.
Unauthenticated
Authentication credentials are missing or invalid.
Service is temporarily unavailable.
Internal
Unexpected internal error.
InvalidTableState
Table is in an invalid state for the operation.
TableSchemaValidationError
Table schema validation failed.
Implementations§
Trait Implementations§
Source§impl Debug for NamespaceError
impl Debug for NamespaceError
Source§impl Display for NamespaceError
impl Display for NamespaceError
Source§impl Error for NamespaceError
impl Error for NamespaceError
Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
Source§impl ErrorCompat for NamespaceError
impl ErrorCompat for NamespaceError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Error::source. Read moreSource§impl From<NamespaceError> for Error
Converts a NamespaceError into a lance_core::Error.
impl From<NamespaceError> for Error
Converts a NamespaceError into a lance_core::Error.
The original NamespaceError is preserved in the source field and can be
extracted via downcasting for programmatic error handling.
Source§fn from(err: NamespaceError) -> Self
fn from(err: NamespaceError) -> Self
Source§impl<__T0> IntoError<NamespaceError> for ConcurrentModificationSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for ConcurrentModificationSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for InternalSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for InternalSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for InvalidInputSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for InvalidInputSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for InvalidTableStateSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for InvalidTableStateSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for NamespaceAlreadyExistsSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for NamespaceAlreadyExistsSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for NamespaceNotEmptySnafu<__T0>
impl<__T0> IntoError<NamespaceError> for NamespaceNotEmptySnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for NamespaceNotFoundSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for NamespaceNotFoundSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for PermissionDeniedSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for PermissionDeniedSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for TableAlreadyExistsSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for TableAlreadyExistsSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for TableColumnNotFoundSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for TableColumnNotFoundSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for TableIndexAlreadyExistsSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for TableIndexAlreadyExistsSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for TableIndexNotFoundSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for TableIndexNotFoundSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for TableNotFoundSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for TableNotFoundSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for TableSchemaValidationSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for TableSchemaValidationSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for TableTagAlreadyExistsSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for TableTagAlreadyExistsSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for TableTagNotFoundSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for TableTagNotFoundSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for TableVersionNotFoundSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for TableVersionNotFoundSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for TransactionNotFoundSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for TransactionNotFoundSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for UnauthenticatedSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for UnauthenticatedSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Source§impl<__T0> IntoError<NamespaceError> for UnsupportedSnafu<__T0>
impl<__T0> IntoError<NamespaceError> for UnsupportedSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NamespaceError
fn into_error(self, error: Self::Source) -> NamespaceError
Auto Trait Implementations§
impl Freeze for NamespaceError
impl RefUnwindSafe for NamespaceError
impl Send for NamespaceError
impl Sync for NamespaceError
impl Unpin for NamespaceError
impl UnwindSafe for NamespaceError
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)
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> 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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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.