@usethrottle/cart
    Preparing search index...

    Class ThrottleApiError

    Thrown on a non-2xx response from the Throttle Cart API.

    Extends the shared ThrottleError so a single catch (e) { if (e instanceof ThrottleError) … } covers errors from every Throttle SDK. instanceof ThrottleApiError keeps working for existing code.

    Hierarchy (View Summary)

    Index
    • Parameters

      • args: {
            code: string;
            details?: Record<string, unknown>;
            message: string;
            statusCode: number;
        }

      Returns ThrottleApiError

    details?: Record<string, unknown>