Constructor
new ValidationError(message, errorsopt)
Constructs a new {ValidationError} with the message and array of additional errors.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
string |
the error message |
|
errors |
Array.<string> | Array.<ErrorObject> |
<optional> |
any additional errors related to validation |