Class JSONParseError

Hierarchy

  • SyntaxError
    • JSONParseError

Constructors

  • Parameters

    • er: Error
    • txt: string
    • context: number = 20
    • Optional caller: Function | ((...a: any[]) => any)

    Returns JSONParseError

Properties

cause?: unknown
code: "EJSONPARSE"
message: string
position: number
stack?: string
systemError: Error
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Accessors

  • get name(): string
  • Returns string

  • set name(_: string): void
  • Parameters

    • _: string

    Returns void

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc