todotxt4js
    Preparing search index...

    Class TodoParsingError

    Error class for todo parsing errors. Extends the standard Error class with additional information about where in the token stream the error occurred.

    Hierarchy

    • Error
      • TodoParsingError
    Index

    Constructors

    • Creates a new TodoParsingError.

      Parameters

      • message: string

        Error message.

      • OptionaltokenIndex: number

        Optional index of the token where the error occurred.

      Returns TodoParsingError

    Properties

    cause?: unknown
    message: string
    name: string
    stack?: string
    tokenIndex?: number

    The index of the token where the error occurred

    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void