Skip to content

Interface: RelationCacheErrorContext

Structured context attached to every runtime relation-cache operational failure (ADR-009). Identifies the model whose error handler is consulted, plus the relation / lookup key / eviction tag the failing operation concerned.

Properties

PropertyTypeDescription
key?string | nullThe cache lookup key, when applicable.
modelstringCanonical identity name of the model involved (the declaring model on reads/writes, the target on evictions).
relation?stringThe relation name, when the failure is tied to a specific relation load.
tag?string | nullThe eviction tag, when applicable.
value?unknownThe value that caused the failure, when one exists: the snapshot being written (E_RELATION_CACHE_WRITE_FAILED) or the cached snapshot that failed to rehydrate (E_RELATION_CACHE_REHYDRATION_FAILED). Absent for read / resolution / eviction failures, which have no causing payload.