RuleViolationError
Hierarchy
- RuleError
- RuleViolationError
Index
Constructors
Properties
Constructors
constructor
Parameters
message: string
The error message.
violations: { moduleId: string; node: string; reason: string; rule: string }[]
Every uncovered violation, of every rule.
Returns RuleViolationError
Properties
readonlyinheritedrule
The rule's name, or its position in the rules file when it has no name.
readonlyviolations
Each node a rule does not hold for: the rule's name and reason, the node's context or module id, and the module that built it.
Thrown by
generatewhen the graph breaks a rule somewhere no exception covers.Errors/Rule
When a selected node does not satisfy a rule's
assert, and no exception of the rule names it.