Skip to main content

Class: ValidationError

Hierarchy

Methods

captureStackTrace

โ–ธ Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

Error.captureStackTrace

Properties

prepareStackTrace

โ–ช Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Type declaration

โ–ธ (err, stackTraces): any

Optional override for formatting stack traces

see https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Parameters
NameType
errError
stackTracesCallSite[]
Returns

any

Inherited from

Error.prepareStackTrace


stackTraceLimit

โ–ช Static stackTraceLimit: number

Inherited from

Error.stackTraceLimit


name

โ€ข name: string

Inherited from

Error.name


message

โ€ข message: string

Inherited from

Error.message


stack

โ€ข Optional stack: string

Inherited from

Error.stack

Constructors

constructor

โ€ข new ValidationError(message)

Parameters

NameType
messagestring

Overrides

Error.constructor