Skip to main content

Module error

Module error 

Source
Expand description

Crate-level error type.

Every fallible operation in obj-core returns Result<T, Error>. Error is intentionally small at milestone M2; later milestones (WAL, B-tree, catalog) extend it with more variants. The variants are non-exhaustive so additions do not count as breaking changes for in-tree callers.

Power-of-ten Rule 7: every Result and Option is handled explicitly. There are no .unwrap() or .expect() calls in this crate’s production code paths.

Enums§

Error
The pager-level error type.
LockKind
Lock category for Error::Busy. Three variants because the three categories of contention produce different operator guidance: a contended cross-process WRITER_LOCK means another process is writing; a contended WriterInProcess means another thread of the same process is writing; a contended reader lock is unusual (31 slots, shared) and indicates either a saturated 31+-process workload or a stale lock left by a frozen process.

Type Aliases§

Result
Crate-local Result alias. Use this in new code unless an explicit std::result::Result is required for trait-impl reasons.