MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / BPlusTreeError

Enum BPlusTreeError

rust/src/error.rs:8–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6/// Error type for B+ tree operations.
7#[derive(Debug, Clone, PartialEq)]
8pub enum BPlusTreeError {
9 /// Key not found in the tree.
10 KeyNotFound,
11 /// Invalid capacity specified.
12 InvalidCapacity(String),
13 /// Internal data structure integrity violation.
14 DataIntegrityError(String),
15 /// Arena operation failed.
16 ArenaError(String),
17 /// Node operation failed.
18 NodeError(String),
19 /// Tree corruption detected.
20 CorruptedTree(String),
21 /// Invalid tree state.
22 InvalidState(String),
23 /// Memory allocation failed.
24 AllocationError(String),
25}
26
27impl BPlusTreeError {
28 /// Create an InvalidCapacity error with context

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected