Reference Source
public class | source

ValidationError

Extends:

lib/errors/empty-result-error.js~BaseError → ValidationError

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.

Member Summary

Public Members
public

Method Summary

Public Methods
public

Gets all validation error items for the path / field specified.

Public Members

public errors: ValidationErrorItem[] source

Public Methods

public get(path: string): Array<ValidationErrorItem> source

Gets all validation error items for the path / field specified.

Params:

NameTypeAttributeDescription
path string

The path to be checked for error items

Return:

Array<ValidationErrorItem>

Validation error items for the specified path