Thrown when an operation targets a cart that is no longer open (HTTP 409,
cart_not_open). A cart leaves open when it is converted by a completed
order (terminal — start a new cart) or abandoned. Catch this to branch on a
stale cart and rebuild from the last-known line items instead of sniffing
error.code.
Subclass of ThrottleApiError (and therefore ThrottleError), so
existing instanceof ThrottleApiError / .code checks keep working.
Thrown when an operation targets a cart that is no longer
open(HTTP 409,cart_not_open). A cart leavesopenwhen it is converted by a completed order (terminal — start a new cart) or abandoned. Catch this to branch on a stale cart and rebuild from the last-known line items instead of sniffingerror.code.Subclass of ThrottleApiError (and therefore ThrottleError), so existing
instanceof ThrottleApiError/.codechecks keep working.