Hierarchy (view full)

Constructors

Properties

prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number
cause?: unknown
data: any

The data of the error, can be anything but should be related to the error type.

See

CommandErrorBuilder#type.

date: Date

When the error occurred.

message: string
name: string
stack?: string

The type of CommandError.

where: string

Where the error occurred.

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc