InvalidNodeTypeError

class wv.InvalidNodeTypeError()

Error object that is thrown when the user passes a node of the incorrect type to a function.

Constructors

wv.InvalidNodeTypeError.constructor()
InvalidNodeTypeError(nodeId: number, expectedTreeType: TreeNodeType, expectedTreeTypes: TreeNodeType[]): InvalidNodeTypeError

Creates a new InvalidNodeTypeError

Parameters

nodeId: number

expectedTreeType: TreeNodeType

expectedTreeTypes: TreeNodeType[]

Returns: InvalidNodeTypeError

Properties

wv.InvalidNodeTypeError.stackTraceLimit

static inherited

stackTraceLimit: number
wv.InvalidNodeTypeError.prepareStackTrace

static optional inherited

prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

wv.InvalidNodeTypeError.expectedTypes

readonly

expectedTypes: NodeType[]
wv.InvalidNodeTypeError.message

inherited

message: string
wv.InvalidNodeTypeError.name

inherited

name: string
wv.InvalidNodeTypeError.nodeId

readonly

nodeId: number
wv.InvalidNodeTypeError.stack

optional inherited

stack: string

Methods

static wv.InvalidNodeTypeError.captureStackTrace()

static inherited

captureStackTrace(targetObject: object, constructorOpt: Function): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt: Function

Returns: void