Custom error class for PADS parser errors.

Hierarchy

  • Error
    • ParserError

Constructors

  • Creates a new ParserError instance.

    Parameters

    • errorInfo: { code: string; message: string }

      The error code and message from ErrorCodes.

    • line: number

      The line number where the error occurred.

    Returns ParserError

Properties

code: string
line: number
message: string
name: string
stack?: string
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