Tealium Prism React Native
    Preparing search index...

    Interface TealiumError

    Error thrown or used to reject a Promise by this package.

    Errors from the native SDK carry the same code property.

    try {
    await tealium.track("checkout_started");
    } catch (error) {
    if ((error as TealiumError).code === ErrorCode.INSTANCE_SHUT_DOWN) {
    // Create a new instance before tracking again.
    }
    }
    interface TealiumError {
        cause?: unknown;
        code: TealiumErrorCode;
        message: string;
        name: string;
        stack?: string;
    }

    Hierarchy

    • Error
      • TealiumError
    Index
    cause?: unknown

    Machine-readable error code. Compare it against ErrorCode.

    message: string
    name: string
    stack?: string