@usethrottle/checkout-sdk
    Preparing search index...

    Class ThrottleCheckoutError

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

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

    Hierarchy (View Summary)

    Index
    • Parameters

      • args: {
            body?: unknown;
            code: string;
            details?: unknown;
            message: string;
            statusCode: number;
        }

      Returns ThrottleCheckoutError