Skip to main content

ValidationError

Extends

  • Error

Constructors

Constructor

new ValidationError(errors): ValidationError;

Parameters

ParameterType
errorsunknown[]

Returns

ValidationError

Overrides

Error.constructor

Properties

PropertyTypeDefault valueOverridesInherited from
namestring'ValidationError'Error.name-
errorsunknown[]undefined--
cause?unknownundefined-Error.cause
messagestringundefined-Error.message
stack?stringundefined-Error.stack

Methods

isError()

static isError(error): error is Error;

Indicates whether the argument provided is a built-in Error instance or not.

Parameters

ParameterType
errorunknown

Returns

error is Error

Inherited from

Error.isError