TagSoup - v3.1.0
    Preparing search index...

    Class ParserError

    The error thrown by a parser if a text is malformed.

    Hierarchy

    Index

    Constructors

    Properties

    Constructors

    • Creates a new ParserError instance.

      Parameters

      • message: string

        The error message.

      • text: string

        The text where an error was detected.

      • startIndex: number = -1

        The index of the first char in text where an error was detected, inclusive.

      • endIndex: number = startIndex

        The index of the last char in text where an error was detected, exclusive.

      Returns ParserError

    Properties

    endIndex: number = startIndex

    The index of the last char in text where an error was detected, exclusive.

    startIndex: number = -1

    The index of the first char in text where an error was detected, inclusive.

    text: string

    The text where an error was detected.