Avaya Infinity Omni SDK
    Preparing search index...

    The error type raised by the Avaya Infinity Omni SDK.

    Every error raised by the Omni SDK is an instance of this class. This custom error class extends the built-in Error and adds a stable code that the consumer can branch on.

    Errors that do not originate from the SDK like a network failure, or a a bug in the SDK itself or a rejection from the browser will propagate unchanged.

    try {
    await AvayaInfinityOmniSdk.createConversation();
    } catch (error) {
    if (!AvayaInfinityOmniSdkError.is(error)) {
    throw error;
    }
    if (error.code === CoreErrorCodes.SESSION_ENDED) {
    await AvayaInfinityOmniSdk.init(initParams);
    }
    }

    Hierarchy

    • Error
      • AvayaInfinityOmniSdkError
    Index
    code: string

    Stable code identifying the failure.

    detail?: string

    Short discriminator for distinguishing conditions that share the same code.

    metadata?: Record<string, unknown>

    Structured context describing the circumstances of the error.