BREAKING CHANGE(core): replace the TypeScript database engine with a Rust-backed embedded server and bridge
This commit is contained in:
15
rust/crates/rustdb-index/src/error.rs
Normal file
15
rust/crates/rustdb-index/src/error.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
/// Errors from index operations.
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum IndexError {
|
||||
#[error("Duplicate key error: index '{index}' has duplicate value for key {key}")]
|
||||
DuplicateKey { index: String, key: String },
|
||||
|
||||
#[error("Index not found: {0}")]
|
||||
IndexNotFound(String),
|
||||
|
||||
#[error("Invalid index specification: {0}")]
|
||||
InvalidIndex(String),
|
||||
|
||||
#[error("Cannot drop protected index: {0}")]
|
||||
ProtectedIndex(String),
|
||||
}
|
||||
Reference in New Issue
Block a user