Class CartItemValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.broadleafcommerce.cartoperation.exception.CartItemValidationException
All Implemented Interfaces:
Serializable

public final class CartItemValidationException extends RuntimeException
Thrown when a CartItem is invalidly configured.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • CartItemValidationException

      public CartItemValidationException(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem)
  • Method Details

    • getCartItem

      public com.broadleafcommerce.cart.client.domain.CartItem getCartItem()
      The invalid CartItem with the errors.
      Returns:
      The invalid CartItem with the errors.
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Throwable