pub enum NamespaceError {
Show 24 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,
},
Throttling {
message: String,
},
TableBranchNotFound {
message: String,
},
TableBranchAlreadyExists {
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.
Throttling
Request was throttled due to rate limiting or too many concurrent operations.
TableBranchNotFound
The specified table branch does not exist.
TableBranchAlreadyExists
A table branch with this name already exists.
Implementations§
Source§impl NamespaceError
impl NamespaceError
Sourcepub fn message(&self) -> &str
pub fn message(&self) -> &str
Returns the inner message without the Display prefix.
Useful when serializing across boundaries (e.g. REST) where the receiver will reconstruct the variant from the error code and re-apply its own Display formatting.
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 source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
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.