Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Methods

Static captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Properties

Static Optional prepareStackTrace

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

Optional override for formatting stack traces

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Optional override for formatting stack traces

      Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

stackTraceLimit: number

Readonly data

data: any

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

see

CommandErrorBuilder#type.

Readonly date

date: Date

When the error occurred.

message

message: string

name

name: string

Optional stack

stack: string

Readonly type

The type of CommandError.

Readonly where

where: string

Where the error occurred.

Constructors

constructor

Generated using TypeDoc