cityworks
    Preparing search index...

    Class CWError

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

    Implements

    Index

    Constructors

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

      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

      • Optionalinfo: any

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

      Returns CWError

      Returns instance of CWError object

    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