new BrokenRulesResponse(brokenRules, message)
Creates a new broken rules response instance.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
brokenRules |
bo.rules.BrokenRulesOutput | The broken rules to send to the client. |
|
message |
string |
<optional> |
Human-readable description of the reason of the failure. |
Throws:
-
Argument error: The broken rules must be a BrokenRulesOutput object.
-
Argument error: The message must be a string value.
Members
-
count :number
-
The count of the broken rules.
Type:
- number
-
<readonly> data :object
-
The object of the broken rules.
Type:
- object
-
<readonly> message :string
-
Human-readable description of the reason of the failure.
Type:
- string
-
<readonly> name :string
-
The name of the response object.
Type:
- string
- Default Value:
-
- "BrokenRules"
-
<readonly> status :number
-
The status code of the HTTP response.
Type:
- number
- Default Value:
-
- 422