Exception: Ruact::ComponentContractError
- Inherits:
-
PreprocessorError
- Object
- StandardError
- Error
- PreprocessorError
- Ruact::ComponentContractError
- Defined in:
- lib/ruact/errors.rb
Overview
Story 13.5 (FR100) — raised by ComponentContract at ERB
preprocess-time when a <Component .../> call site violates the component's
opt-in contract: a missing required prop/slot or an unknown prop name.
Subclasses PreprocessorError so it flows through the same dev error
overlay (NFR30 lineage) and the hook treats it uniformly — but the distinct
class lets the preprocessor re-raise it AS-IS (its message already carries
file:line + the offending prop + a "did you mean?" suggestion) instead of
re-wrapping it with the generic "at line N: snippet" tail.