Exception: Hecks::Runtime::AttributeAbsent
- Inherits:
-
StandardError
- Object
- StandardError
- Hecks::Runtime::AttributeAbsent
- Defined in:
- lib/hecks/runtime/errors.rb
Overview
A declared, non-optional attribute a record predates — added since
it was written, with no default: to fill it and no translation
declaring what an old record should read there. GuardState
(command_rules/admissibility.rb) is the one place this is raised: a
given/ensures/invariant that reads the field would otherwise
evaluate against a value nobody wrote, which is the same silent-
wrong-answer class as an unpopulated projection reading "not
active" (ADR 0025, "Added attributes and absence"). An OPTIONAL
attribute in the same spot reads nil instead — that is what
optional means, and this refusal is deliberately narrower than the
nil-read it sits beside, not a replacement for it.