Class: ValidationError

ValidationError(errorsopt)

Custom error class for validation errors.

Constructor

new ValidationError(errorsopt)

Custom error class for validation errors.

Parameters:
Name Type Attributes Default Description
errors Array.<ErrorItem> <optional>
[]

An array of error objects, each containing details about validation failures.

Extends

  • Error

Classes

ValidationError