Constructor
# new ValidationError(propertyErrors, baseErroropt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
propertyErrors |
PropertyErrors
|
error messages |
|
baseError |
RecordError
|
<optional> |
base error message |
Classes
Members
# baseError
One root validation error i.e. thrown when user wants to perform
an action which violates foreign key constraint
RecordError
|
null
# baseError
One root validation error i.e. thrown when user wants to perform
an action which violates foreign key constraint
# propertyErrors
Validation errors for all properties
# statusCode
HTTP Status code: 400
Type Definitions
object
# RecordError
Record Error
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
type |
string
|
<optional> |
error type (i.e. required) |
message |
string
|
human readable message |