pub enum Error {
Show 24 variants
NotFound,
TxnClosed,
TxnReadOnly,
TxnConflict,
Io(Error),
InvalidFormat(String),
ChecksumMismatch,
CorruptedSegment {
reason: String,
},
DimensionMismatch {
expected: usize,
actual: usize,
},
UnsupportedMetric {
metric: String,
},
InvalidVector {
index: usize,
reason: String,
},
InvalidFilter(String),
MemoryLimitExceeded {
limit: usize,
requested: usize,
},
PathExists(PathBuf),
InvalidParameter {
param: String,
reason: String,
},
IndexNotFound {
name: String,
},
CorruptedIndex {
name: String,
reason: String,
},
UnsupportedIndexVersion {
found: u32,
supported: u32,
},
UnknownOption {
key: String,
},
InvalidColumnType {
column: String,
expected: String,
},
IndexBusy {
operation: String,
},
Columnar(ColumnarError),
S3(String),
MissingCredentials(String),
}Expand description
The error type for AlopexDB operations.
Variants§
NotFound
The requested key was not found.
TxnClosed
The transaction has already been closed (committed or rolled back).
TxnReadOnly
Read-only トランザクションで書き込み操作を試みた。
TxnConflict
A transaction conflict occurred (e.g., optimistic concurrency control failure).
Io(Error)
An underlying I/O error occurred.
InvalidFormat(String)
The on-disk format is invalid or corrupted.
ChecksumMismatch
A checksum validation failed.
CorruptedSegment
On-disk segment is corrupted (e.g., checksum failure).
DimensionMismatch
A vector with an unexpected dimension was provided.
UnsupportedMetric
A metric that is not supported was requested.
InvalidVector
A vector value is invalid for the requested operation.
Fields
InvalidFilter(String)
A filter expression is malformed or unsupported.
MemoryLimitExceeded
Memory usage exceeded configured limit.
Fields
PathExists(PathBuf)
The provided path already exists and cannot be overwritten.
InvalidParameter
An index configuration parameter is invalid.
Fields
IndexNotFound
An index with the requested name was not found.
CorruptedIndex
An index failed integrity checks.
UnsupportedIndexVersion
The stored index version is unsupported by this binary.
UnknownOption
An unknown configuration or runtime option was provided.
InvalidColumnType
A column type does not match the expected layout.
IndexBusy
The index is busy and cannot serve the requested operation.
Columnar(ColumnarError)
Errors originating from columnar components.
S3(String)
An S3 operation failed.
MissingCredentials(String)
Required credentials are missing.