InvalidIndexError

class InvalidIndexError()

Error object that is thrown when a user supplies an invalid user data index.

Constructors


Constructors

InvalidIndexError.constructor(index)
Arguments
  • index (string | number()) – None

Creates a new InvalidIndexError

Return type

InvalidIndexError

Properties

InvalidIndexError.message
Type

string

InvalidIndexError.name
Type

string

InvalidIndexError.stack
Type

string optional

InvalidIndexError.prepareStackTrace
Type

function optional

Optional override for formatting stack traces

See

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

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

  • stackTraces ([CallSite]()) – None

Return type

any

InvalidIndexError.stackTraceLimit
Type

number

Methods

static captureStackTrace

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

  • constructorOpt (Function()) – optional None

Create .stack property on a target object

Return type

void