Error class that automatically sets this.name to this.constructor.name.

Hierarchy

Constructors

  • Parameters

    • Rest ...args: any[]

      Passed to the Error constructor

    Returns SelfAwareError

Properties

message: string
name: string

Name of the constructor

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

Type declaration

stackTraceLimit: number

Methods

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc