Hierarchy (view full)

Constructors

Properties

cause?: unknown
message: string
name: string
stack?: string
code: number = 405
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Accessors

  • get code(): number
  • Returns number

  • set code(c): void
  • Parameters

    • c: number

    Returns void

Methods

  • Returns a string representation of an object.

    Returns string

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

  • Parameters

    • err: Error

    Returns boolean