@usethrottle/discounts
    Preparing search index...

    Class ThrottleDiscountsError

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

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

    Hierarchy (View Summary)

    Index
    • Parameters

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

      Returns ThrottleDiscountsError