Class StaleCartException

  • All Implemented Interfaces:
    Serializable

    public class StaleCartException
    extends RuntimeException
    Exception thrown when attempting to modify a cart when the client has an out of date version of the cart.
    Author:
    Jacob Mitash
    See Also:
    Serialized Form
    • Constructor Detail

      • StaleCartException

        public StaleCartException​(Integer requestVersion,
                                  @Nullable
                                  com.broadleafcommerce.cart.client.domain.Cart upToDateCart)
      • StaleCartException

        public StaleCartException​(Integer requestVersion,
                                  @Nullable
                                  com.broadleafcommerce.cart.client.domain.Cart upToDateCart,
                                  Throwable cause)
      • StaleCartException

        public StaleCartException​(String message,
                                  com.broadleafcommerce.cart.client.domain.Cart upToDateCart,
                                  Throwable cause)
    • Method Detail

      • getUpToDateCart

        @Nullable
        public com.broadleafcommerce.cart.client.domain.Cart getUpToDateCart()