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.
catch (e) { if (e instanceof ThrottleError) … }
instanceof ThrottleApiError
Optional
Readonly
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 ThrottleApiErrorkeeps working for existing code.