new BrokenRulesResponse(brokenRules[, message])

Creates a new broken rules response instance.

Parameters

Name Type Optional Description

brokenRules

bo.rules.BrokenRulesOutput

 

The broken rules to send to the client.

message

string

Yes

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.

Properties

count  number

The count of the broken rules.

read-only
data  object

The object of the broken rules.

read-only
message  string

Human-readable description of the reason of the failure.

read-only
name  string

The name of the response object.

Default value

read-only
status  number

The status code of the HTTP response.

Default value