ParseError

class ParseError()

Error object that is thrown when invalid data is supplied to a function.

Constructors


Constructors

ParseError.constructor(message)
Arguments
  • message (string()) – None

Creates a new ParseError

Return type

ParseError

Properties

ParseError.message
Type

string

ParseError.name
Type

string

ParseError.stack
Type

string optional

ParseError.prepareStackTrace
Type

function optional

Optional override for formatting stack traces

See

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

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

  • stackTraces ([CallSite]()) – None

Return type

any

ParseError.stackTraceLimit
Type

number

Methods

static captureStackTrace

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

  • constructorOpt (Function()) – optional None

Create .stack property on a target object

Return type

void