new RuleNotice(message, severity)
Creates a new rule notice instance.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
message |
string | Human-readable description of the reason of the failure. |
|
severity |
bo.rules.RuleSeverity |
<optional> |
The severity of the rule failure, defaults to error. |
Throws:
-
Argument error: The message must be a non-empty string.
-
Argument error: The severity must be a RuleSeverity item.
Members
-
<readonly> message :string
-
Human-readable description of the reason of rule failure.
Type:
- string
-
<readonly> severity :bo.rules.RuleSeverity
-
The severity of the rule failure.
Type: