Kokopu - v4.13.0
    Preparing search index...

    Class InvalidPGN

    Exception thrown by the PGN parsing functions.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • pgn: string
      • index: number
      • lineNumber: number
      • message: string
      • ...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.