Class CWError

CWError implements a custom error class for this codebase with additional information

Hierarchy

  • CWError

Implements

Constructors

Properties

Constructors

  • CWError implements a custom error class for this codebase with additional information

    Returns

    Returns instance of CWError object

    Parameters

    • code: number

      Number for the thrown error (Efforts were made to make these unique when thrown throughout the codebase)

    • message: string

      The error message

    • Optional info: any

      Object stuffed with any other information one wishes to include in the thrown error

    Returns CWError

Properties

code: number

Number for the thrown error (Efforts were made to make these unique when thrown throughout the codebase)

error_messages: CWErrorMsgs[]

The error message

info?: string

Object stuffed with any other information one wishes to include in the thrown error

message: string

The error message

name: string

Just statically set to "Cityworks Exception" for now