Implements

Constructors

  • Constructs a new instance of the ExceptionTelemetry object

    Parameters

    • logger: IDiagnosticLogger
    • exception: Error | IAutoExceptionTelemetry | IExceptionInternal
    • Optionalproperties: {
          [key: string]: any;
      }
      • [key: string]: any
    • Optionalmeasurements: {
          [key: string]: number;
      }
      • [key: string]: number
    • OptionalseverityLevel: number
    • Optionalid: string

    Returns Exception

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

Use the constant ExceptionDataType instead.

envelopeType: string

Use the constant ExceptionEnvelopeType instead.

exceptions: IExceptionDetails[]

Exception chain - list of inner exceptions.

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

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

  • Parameters

    • message: string | Event
    • url: string
    • lineNumber: number
    • columnNumber: number
    • error: any
    • Optionalevt: string | Event
    • Optionalstack: string
    • OptionalerrorSrc: string

    Returns IAutoExceptionTelemetry

  • Parameters

    • logger: IDiagnosticLogger
    • exception: IExceptionInternal
    • Optionalproperties: any
    • Optionalmeasurements: {
          [key: string]: number;
      }
      • [key: string]: number

    Returns Exception

  • 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