Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ParseError

Error thrown during TRL parsing.

Hierarchy

  • Error
    • ParseError

Index

Constructors

Properties

Constructors

constructor

  • new ParseError(message: string, position: number[]): ParseError
  • Initializes a new instance of the ParseError class.

    Parameters

    • message: string

      The message associated with the error.

    • position: number[]

      A set of one-based indices that identify the location of the command that caused the error within the original TRL string.

    Returns ParseError

Properties

message

message: string

The message associated with the error.

position

position: number[]

A set of one-based indices that identify the location of the command that caused the error within the original TRL string.

For example, if the TRL string was "a; (b; c; (d; e;););", then [2, 3, 2] indicates that command "e" caused the error.

Static Error

Error: ErrorConstructor

Static message

message: string

Static name

name: string

Static Optional stack

stack: string

Generated using TypeDoc