Skip to main content

default

Hierarchy

  • Error
    • default

Index

Constructors

constructor

  • new default(packageName?: string, functionName?: string, reason?: string): default
  • Parameters

    • optionalpackageName: string
    • optionalfunctionName: string
    • optionalreason: string

    Returns default

Properties

optionalcause

cause?: unknown

publicoptionalfunctionName

functionName?: string

message

message: string

name

name: string

publicoptionalpackageName

packageName?: string

publicoptionalreason

reason?: string

optionalstack

stack?: string

staticoptionalprepareStackTrace

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

@see

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

staticstackTraceLimit

stackTraceLimit: number

Methods

staticcaptureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object


    Parameters

    • targetObject: object
    • optionalconstructorOpt: Function

    Returns void