#[repr(u32)]pub enum ErrorCode {
Show 21 variants
Unsupported = 0,
NamespaceNotFound = 1,
NamespaceAlreadyExists = 2,
NamespaceNotEmpty = 3,
TableNotFound = 4,
TableAlreadyExists = 5,
TableIndexNotFound = 6,
TableIndexAlreadyExists = 7,
TableTagNotFound = 8,
TableTagAlreadyExists = 9,
TransactionNotFound = 10,
TableVersionNotFound = 11,
TableColumnNotFound = 12,
InvalidInput = 13,
ConcurrentModification = 14,
PermissionDenied = 15,
Unauthenticated = 16,
ServiceUnavailable = 17,
Internal = 18,
InvalidTableState = 19,
TableSchemaValidationError = 20,
}Expand description
Lance Namespace error codes.
These codes are globally unique across all Lance Namespace implementations (Python, Java, Rust, REST). Use these codes for programmatic error handling.
Variants§
Unsupported = 0
Operation not supported by this backend
NamespaceNotFound = 1
The specified namespace does not exist
NamespaceAlreadyExists = 2
A namespace with this name already exists
NamespaceNotEmpty = 3
Namespace contains tables or child namespaces
TableNotFound = 4
The specified table does not exist
TableAlreadyExists = 5
A table with this name already exists
TableIndexNotFound = 6
The specified table index does not exist
TableIndexAlreadyExists = 7
A table index with this name already exists
TableTagNotFound = 8
The specified table tag does not exist
TableTagAlreadyExists = 9
A table tag with this name already exists
TransactionNotFound = 10
The specified transaction does not exist
TableVersionNotFound = 11
The specified table version does not exist
TableColumnNotFound = 12
The specified table column does not exist
InvalidInput = 13
Malformed request or invalid parameters
ConcurrentModification = 14
Optimistic concurrency conflict
PermissionDenied = 15
User lacks permission for this operation
Unauthenticated = 16
Authentication credentials are missing or invalid
Service is temporarily unavailable
Internal = 18
Unexpected server/implementation error
InvalidTableState = 19
Table is in an invalid state for the operation
TableSchemaValidationError = 20
Table schema validation failed
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.