| 6 | /// Error type for B+ tree operations. |
| 7 | #[derive(Debug, Clone, PartialEq)] |
| 8 | pub 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 | |
| 27 | impl BPlusTreeError { |
| 28 | /// Create an InvalidCapacity error with context |
nothing calls this directly
no outgoing calls
no test coverage detected