InvalidNodeIdError

class InvalidNodeIdError()

Error object that is thrown when the user passes an non existent NodeId to a function.

Constructors


Constructors

InvalidNodeIdError.constructor(nodeId)
Arguments
  • nodeId (number()) – None

Creates a new InvalidNodeIdError

Return type

InvalidNodeIdError

Properties

InvalidNodeIdError.message
Type

string

InvalidNodeIdError.name
Type

string

InvalidNodeIdError.nodeId
Type

number

InvalidNodeIdError.stack
Type

string optional

InvalidNodeIdError.prepareStackTrace
Type

function optional

Optional override for formatting stack traces

See

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

InvalidNodeIdError.prepareStackTrace(err, stackTraces)
Arguments
  • err (Error()) – None

  • stackTraces ([CallSite]()) – None

Return type

any

InvalidNodeIdError.stackTraceLimit
Type

number

Methods

static captureStackTrace

InvalidNodeIdError.captureStackTrace(targetObject[, constructorOpt])
Arguments
  • targetObject (object()) – None

  • constructorOpt (Function()) – optional None

Create .stack property on a target object

Return type

void