Options
All
  • Public
  • Public/Protected
  • All
Menu

Thrown when there is an exception during the parsing stage

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • Construct a ParserError with a message, token and optional causing error.

    Parameters

    • message: string

      The error message

    • token: Token

      The token being parsed when the exception occurred

    • Optional cause: Error

      The causing error

    Returns ParserError

Properties

Optional cause

cause: Error

The error, if exists, that caused this error

message

message: string

The error message

name

name: string

The name of the error, which is generally the constructor name

Optional stack

stack: undefined | string

token

token: Token

The token being parsed during the exception

type

type: string

A value to identify the error from other errors

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc