Skip to main content

Module error

Module error 

Source
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§

ConcurrentModificationSnafu
SNAFU context selector for the NamespaceError::ConcurrentModification variant
InternalSnafu
SNAFU context selector for the NamespaceError::Internal variant
InvalidInputSnafu
SNAFU context selector for the NamespaceError::InvalidInput variant
InvalidTableStateSnafu
SNAFU context selector for the NamespaceError::InvalidTableState variant
NamespaceAlreadyExistsSnafu
SNAFU context selector for the NamespaceError::NamespaceAlreadyExists variant
NamespaceNotEmptySnafu
SNAFU context selector for the NamespaceError::NamespaceNotEmpty variant
NamespaceNotFoundSnafu
SNAFU context selector for the NamespaceError::NamespaceNotFound variant
PermissionDeniedSnafu
SNAFU context selector for the NamespaceError::PermissionDenied variant
ServiceUnavailableSnafu
SNAFU context selector for the NamespaceError::ServiceUnavailable variant
TableAlreadyExistsSnafu
SNAFU context selector for the NamespaceError::TableAlreadyExists variant
TableColumnNotFoundSnafu
SNAFU context selector for the NamespaceError::TableColumnNotFound variant
TableIndexAlreadyExistsSnafu
SNAFU context selector for the NamespaceError::TableIndexAlreadyExists variant
TableIndexNotFoundSnafu
SNAFU context selector for the NamespaceError::TableIndexNotFound variant
TableNotFoundSnafu
SNAFU context selector for the NamespaceError::TableNotFound variant
TableSchemaValidationSnafu
SNAFU context selector for the NamespaceError::TableSchemaValidationError variant
TableTagAlreadyExistsSnafu
SNAFU context selector for the NamespaceError::TableTagAlreadyExists variant
TableTagNotFoundSnafu
SNAFU context selector for the NamespaceError::TableTagNotFound variant
TableVersionNotFoundSnafu
SNAFU context selector for the NamespaceError::TableVersionNotFound variant
TransactionNotFoundSnafu
SNAFU context selector for the NamespaceError::TransactionNotFound variant
UnauthenticatedSnafu
SNAFU context selector for the NamespaceError::Unauthenticated variant
UnsupportedSnafu
SNAFU context selector for the NamespaceError::Unsupported variant

Enums§

ErrorCode
Lance Namespace error codes.
NamespaceError
Lance Namespace error type.

Type Aliases§

Result
Result type for namespace operations.