Exception thrown by the PGN parsing functions.

Constructors

Properties

Constructors

  • Parameters

    • pgn: string
    • index: number
    • lineNumber: number
    • message: string
    • Rest...tokens: unknown[]

    Returns InvalidPGN

Properties

index: number

Index (0-based) of the character in the PGN string where the parsing fails (or a negative value if no particular character is related to the error).

lineNumber: number

Index (1-based) of the line in the PGN string where the parsing fails (or a negative value if no particular character is related to the error).

message: string

Human-readable message describing the error.

pgn: string

PGN string that causes the error.