RUM JavaScript API - 1.345.1
    Preparing search index...

    Class DynatraceError

    Error class thrown by the asynchronous SDK API when the Dynatrace RUM JavaScript is not available within the specified timeout, or the dynatrace namespace is overridden with an incompatible object.

    import { sendEvent, DynatraceError } from '@dynatrace/rum-javascript-sdk/api/promises';

    try {
    await sendEvent({ 'event_properties.test': 'value' });
    } catch (error) {
    if (error instanceof DynatraceError) {
    console.error('RUM API Error:', error.message);
    }
    }

    Hierarchy

    Index

    Constructors

    Constructors

    • Parameters

      • message: string
      • Optionalcause: unknown

      Returns DynatraceError