ParseError

class wv.ParseError()

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

Constructors

wv.ParseError.constructor()
ParseError(message: string): ParseError

Creates a new ParseError

Parameters

message: string

Returns: ParseError

Properties

wv.ParseError.stackTraceLimit

static inherited

stackTraceLimit: number
wv.ParseError.prepareStackTrace

static optional inherited

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

Optional override for formatting stack traces

wv.ParseError.message

inherited

message: string
wv.ParseError.name

inherited

name: string
wv.ParseError.stack

optional inherited

stack: string

Methods

static wv.ParseError.captureStackTrace()

static inherited

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

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt: Function

Returns: void