Skip to main content

RuleError

Thrown for a rule that cannot be loaded or evaluated.

@group

Errors/Rule

@throws

When a rule is not shaped as a rule: a key is missing, unknown, or of the wrong type.

@throws

When two rules share a name.

@throws

When a rule runs at a stage octo does not run rules at.

@throws

When a rule's select or assert does not parse, names a kind, field or relationship octo does not know, or returns the wrong type.

@throws

When a rule's select, or its assert on a selected thing, fails while it is evaluated.

@throws

When a rule's assert returns no bool on a selected thing.

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • RuleError(message: string, rule: string): RuleError
  • Parameters

    • message: string

      The error message.

    • rule: string

      The rule's name.

    Returns RuleError

Properties

readonlyrule

rule: string

The rule's name, or its position in the rules file when it has no name.

Page Options