Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ParserError

A ParseFn throws a ParseError when the ParseInput cannot be transformed to the parsers target type.

Hierarchy

  • Error
    • ParserError

Index

Constructors

constructor

  • new ParserError(expected: string, found: string): ParserError

Properties

Readonly expected

expected: string

Readonly found

found: string

message

message: string

name

name: string

Optional stack

stack: string

Static Optional prepareStackTrace

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

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Optional override for formatting stack traces

      Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

  • captureStackTrace(targetObject: Object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: Object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc