Skip to main content

Module error

Module error 

Source
Expand description

Error type for the memory layer.

Enums§

ErrorCategory
The transport-neutral class of a MemoryError — the single source of truth every adapter maps onto its own error channel (JSON-RPC code, napi status, PyO3 exception type), so the taxonomy can never drift between them. non_exhaustive so a future category is a wildcard arm downstream instead of a breaking release. That trades away the compile-time exhaustiveness the in-repo adapters relied on, so ErrorCategory::ALL restores it as a test-time guard: each adapter iterates ALL and asserts its mapping is total, which turns “someone added a category” from a silent fallback into a red test naming the unmapped variant.
MemoryError
Errors returned by crate::service::MemoryService.