Class CartOptimisticLockingFailureException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.broadleafcommerce.cart.service.exception.CartOptimisticLockingFailureException
All Implemented Interfaces:
Serializable

public class CartOptimisticLockingFailureException extends RuntimeException
Exception thrown when optimistic locking fails during a cart save. This will be used to try and get the caller the latest version of the cart so they can retry the operation.
Author:
Jacob Mitash
See Also:
  • Constructor Details

    • CartOptimisticLockingFailureException

      public CartOptimisticLockingFailureException(String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Throwable cause)
  • Method Details

    • getCartId

      public String getCartId()
    • getContextInfo

      public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()
    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object