Skip to main content

Class: InvalidDirectiveError

Extends

Constructors

new InvalidDirectiveError()

new InvalidDirectiveError(message, filePath, directive): InvalidDirectiveError

Parameters

message

string

filePath

string

directive

string

Returns

InvalidDirectiveError

Overrides

ValidationError.constructor

Properties

directive

readonly directive: string


filePath

readonly filePath: string


message

message: string

Inherited from

ValidationError.message


name

name: string

Inherited from

ValidationError.name


stack?

optional stack: string

Inherited from

ValidationError.stack


prepareStackTrace()?

static optional prepareStackTrace: (err, stackTraces) => any

Optional override for formatting stack traces

Parameters

err

Error

stackTraces

CallSite[]

Returns

any

See

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

Inherited from

ValidationError.prepareStackTrace


stackTraceLimit

static stackTraceLimit: number

Inherited from

ValidationError.stackTraceLimit

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject

object

constructorOpt?

Function

Returns

void

Inherited from

ValidationError.captureStackTrace