Class CommandError

Error class to be used when the command throws an error.

Hierarchy

  • Error
    • CommandError

Constructors

Properties

cmd: string

Command line that triggered the command error.

code: string = 'ERR_COMMAND_ERRORED'

Code to identify the error in catch clauses.

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

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function
      Optional

    Returns void

Generated using TypeDoc