Options
All
  • Public
  • Public/Protected
  • All
Menu

Error returned when a parser fails

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • new ParseError(line: number, column: number, message?: string, source: Source, expected?: undefined | string, actual?: undefined | string): ParseError
  • Parameters

    • line: number

      Line that the error occurred on

    • column: number

      Column that the error occurred on

    • Default value message: string = "Parse error"

      Message describing error

    • source: Source

      Source of the error

    • Optional expected: undefined | string

      What was expected

    • Optional actual: undefined | string

      What was found

    Returns ParseError

Properties

column

column: number

Column that the error occurred on

line

line: number

Line that the error occurred on

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Generated using TypeDoc