Expand description
Lance Namespace error types.
This module defines fine-grained error types for Lance Namespace operations. Each error type has a unique numeric code that is consistent across all Lance Namespace implementations (Python, Java, Rust, REST).
§Error Handling
Namespace operations return NamespaceError which can be converted to
lance_core::Error for integration with the Lance ecosystem.
ⓘ
use lance_namespace::{NamespaceError, ErrorCode};
// Create and use namespace errors
let err = NamespaceError::TableNotFound {
message: "Table 'users' not found".into(),
};
assert_eq!(err.code(), ErrorCode::TableNotFound);
// Convert to lance_core::Error
let lance_err: lance_core::Error = err.into();Structs§
- Concurrent
Modification Snafu - SNAFU context selector for the
NamespaceError::ConcurrentModificationvariant - Internal
Snafu - SNAFU context selector for the
NamespaceError::Internalvariant - Invalid
Input Snafu - SNAFU context selector for the
NamespaceError::InvalidInputvariant - Invalid
Table State Snafu - SNAFU context selector for the
NamespaceError::InvalidTableStatevariant - Namespace
Already Exists Snafu - SNAFU context selector for the
NamespaceError::NamespaceAlreadyExistsvariant - Namespace
NotEmpty Snafu - SNAFU context selector for the
NamespaceError::NamespaceNotEmptyvariant - Namespace
NotFound Snafu - SNAFU context selector for the
NamespaceError::NamespaceNotFoundvariant - Permission
Denied Snafu - SNAFU context selector for the
NamespaceError::PermissionDeniedvariant - Service
Unavailable Snafu - SNAFU context selector for the
NamespaceError::ServiceUnavailablevariant - Table
Already Exists Snafu - SNAFU context selector for the
NamespaceError::TableAlreadyExistsvariant - Table
Column NotFound Snafu - SNAFU context selector for the
NamespaceError::TableColumnNotFoundvariant - Table
Index Already Exists Snafu - SNAFU context selector for the
NamespaceError::TableIndexAlreadyExistsvariant - Table
Index NotFound Snafu - SNAFU context selector for the
NamespaceError::TableIndexNotFoundvariant - Table
NotFound Snafu - SNAFU context selector for the
NamespaceError::TableNotFoundvariant - Table
Schema Validation Snafu - SNAFU context selector for the
NamespaceError::TableSchemaValidationErrorvariant - Table
TagAlready Exists Snafu - SNAFU context selector for the
NamespaceError::TableTagAlreadyExistsvariant - Table
TagNot Found Snafu - SNAFU context selector for the
NamespaceError::TableTagNotFoundvariant - Table
Version NotFound Snafu - SNAFU context selector for the
NamespaceError::TableVersionNotFoundvariant - Transaction
NotFound Snafu - SNAFU context selector for the
NamespaceError::TransactionNotFoundvariant - Unauthenticated
Snafu - SNAFU context selector for the
NamespaceError::Unauthenticatedvariant - Unsupported
Snafu - SNAFU context selector for the
NamespaceError::Unsupportedvariant
Enums§
- Error
Code - Lance Namespace error codes.
- Namespace
Error - Lance Namespace error type.
Type Aliases§
- Result
- Result type for namespace operations.