Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy-Diagram

UML class diagram of CommanderError

Legend

icon for a class in the UML class diagram class
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method
underlined static property/method

Hierarchy

Index

Constructors

  • new CommanderError(exitCode: number, code: string, message: string): CommanderError
  • Constructs the CommanderError class

    Parameters

    • exitCode: number

      suggested exit code which could be used with process.exit

    • code: string

      an id string representing the error

    • message: string

      human-readable description of the error

    Returns CommanderError

Properties

code: string
exitCode: number
message: string
name: string
nestedError?: string
stack?: string
prepareStackTrace?: (err: <internal>.Error, stackTraces: CallSite[]) => any

Type declaration

stackTraceLimit: number

Methods

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc