Skip to content

Latest commit

 

History

History
114 lines (62 loc) · 1.91 KB

ParserError.md

File metadata and controls

114 lines (62 loc) · 1.91 KB

obscenity / ParserError

Class: ParserError

Custom error thrown by the parser when syntactical errors are detected.

Hierarchy

  • Error

    ParserError

Table of contents

Constructors

Properties

Constructors

constructor

new ParserError(message, line, column)

Parameters

Name Type
message string
line number
column number

Overrides

Error.constructor

Defined in

src/pattern/ParserError.ts:18

Properties

column

Readonly column: number

The column on which the error occurred (one-based). Note that surrogate pairs are counted as 1 column wide, not 2.

Defined in

src/pattern/ParserError.ts:16


line

Readonly line: number

The line on which the error occurred (one-based).

Defined in

src/pattern/ParserError.ts:10


message

message: string

Inherited from

Error.message

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1068


name

Readonly name: "ParserError"

Overrides

Error.name

Defined in

src/pattern/ParserError.ts:5


stack

Optional stack: string

Inherited from

Error.stack

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1069