An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.

Implements

Constructors

Properties

aiDataContract: {
    exceptions: FieldType;
    measurements: FieldType;
    properties: FieldType;
    severityLevel: FieldType;
    ver: FieldType;
} = ...

The set of fields for a serializable object. This defines the serialization order and a value of true/false for each field defines whether the field is required or not.

dataType: string = ExceptionDataType

Use the constant ExceptionDataType instead.

envelopeType: string = ExceptionEnvelopeType

Use the constant ExceptionEnvelopeType instead.

exceptions: IExceptionDetails[]

Exception chain - list of inner exceptions.

formatError: ((errorObj: any) => any) = _formatErrorCode

Type declaration

    • (errorObj): any
    • Formats the provided errorObj for display and reporting, it may be a String, Object, integer or undefined depending on the browser.

      Parameters

      • errorObj: any

        The supplied errorObj

      Returns any

id?: string
isManual?: boolean
measurements: any

Collection of custom measurements.

problemGroup?: string
properties: any

Collection of custom properties.

severityLevel: number

Severity level. Mostly used to indicate exception severity level when it is reported by logging library.

ver: number

Schema version

Methods

  • Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.

    Parameters

    • message: string
    • typeName: string
    • assembly: string
    • fileName: string
    • details: string
    • line: number

    Returns Exception