@usethrottle/cart
    Preparing search index...

    Class CartNotOpenError

    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.

    Hierarchy (View Summary)

    Index
    • Parameters

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

      Returns CartNotOpenError

    details?: Record<string, unknown>