Signals the provisioning of objects of unexpected (bad) types.

Hierarchy (view full)

Constructors

Properties

inner: undefined | Error = undefined
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Returns a pretty, friendly summary for the error or for the chain of errros (if appropriate).

    Returns any[]

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc