Options
Modules
  • Command
  • Localization
  • Logger
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandDispatchError

Represents an error encountered while dispatching a called Command. Holds an error kind and the Command that triggered the error

Hierarchy

  • Error
    • CommandDispatchError

Index

Constructors

constructor

Properties

command

command: Command<Client>

The Command called that triggered the dispatch error

commandCtx

commandCtx: CommandContext<Client>

The CommandContext that would have been given to the Command call that triggered the dispatch error

kind

The kind of dispatch error encountered

message

message: string

name

name: string

Optional stack

stack: string

Static Optional prepareStackTrace

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

Optional override for formatting stack traces

see

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Type declaration

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

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc