@nospamproxy/core
    Preparing search index...

    Standard error class to be used to wrap any error to be shown on UI.

    Hierarchy

    • Error
      • ApplicationError
    Index

    Constructors

    • Creates an instance of ApplicationError.

      Parameters

      • error: unknown

        the error to "wrap". Note that this isn't always an Error object because it is possible to throw non Error objects in javascript.

      • OptionalfriendlyMessage: string

        message to display (to be used for logging).

      • OptionalfriendlyMessageKey: string

        i18n key for the message (to be used in UI).

      • OptionalfriendlyHeaderKey: string

        i18n key for the header (to be used in UI).

      Returns ApplicationError

    Properties

    friendlyHeaderKey?: string

    i18n key for the header (to be used in UI).

    friendlyMessage?: string

    message to display (to be used for logging).

    friendlyMessageKey?: string

    i18n key for the message (to be used in UI).

    httpStatus?: number
    httpStatusText?: string
    id: string

    Error identifier; when Application Insight is enabled, this is used to track exception.