Validation Error. Thrown when the sequelize validation has failed. The error contains an errors
property, which is an array with 1 or more ValidationErrorItems, one for each validation that failed.
Public Members | ||
---|---|---|
public |
Public Methods | ||
---|---|---|
public | get(path: string): Array<ValidationErrorItem> Gets all validation error items for the path / field specified. |
Gets all validation error items for the path / field specified.
Name | Type | Attribute | Description |
---|---|---|---|
path | string |
The path to be checked for error items |
Array<ValidationErrorItem> |
Validation error items for the specified path |
Copyright © 2014–present Sequelize contributors
Licensed under the MIT License.
https://sequelize.org/master/class/lib/errors/validation-error.js~ValidationError.html