Hierarchy

Constructors

  • Parameters

    • Optional message: string

    Returns ParseError

  • Parameters

    • Optional message: string
    • Optional options: ErrorOptions

    Returns ParseError

Properties

cause?: unknown
code: string = 'ERR_PARSE_ERROR'

This will be removed in a future release

Deprecated

use the .name property instead

message: string
name: string = 'ParseError'
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void