Interface CustomErrorConstructor<D>

Property

error name

Property

error message

Property

error stack trace

Property

error details

Property

hierarchy of extended/parent error names

Type Parameters

  • D

Hierarchy

  • Parameters

    • Optional arg1: Arg<D>
    • Optional arg2: Arg<D>
    • Optional arg3: Arg<D>

    Returns CustomError<D>

Constructors

  • Parameters

    • Optional arg1: Arg<D>
    • Optional arg2: Arg<D>
    • Optional arg3: Arg<D>

    Returns CustomError<D>

Properties

captureStackTrace: ((targetObject: object, constructorOpt?: Function) => void)

Type declaration

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

      Parameters

      • targetObject: object
      • Optional constructorOpt: Function

      Returns void

details?: {
    [key: string]: unknown;
}

Type declaration

  • [key: string]: unknown
message: string
name: string
names: Names
stack?: string
stackTraceLimit: number

Generated using TypeDoc