new ValidationError(options)
Create a new ValidationError object
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
Example
throw new ValidationError({
message: "id is required",
});