Class CatalogItemNotFoundException

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

public final class CatalogItemNotFoundException extends RuntimeException
Thrown when a catalog item cannot be found for a product id and/or sku.
Author:
Chris Kittrell (ckittrell)
See Also:
  • Constructor Details

    • CatalogItemNotFoundException

      public CatalogItemNotFoundException(String sku)
    • CatalogItemNotFoundException

      public CatalogItemNotFoundException(String productId, String variantId)
    • CatalogItemNotFoundException

      public CatalogItemNotFoundException(String sku, String productId, String variantId)
  • Method Details

    • getSku

      public String getSku()
      The sku of the catalog item that could not be found.
      Returns:
      The sku of the catalog item that could not be found.
    • getProductId

      public String getProductId()
      The product id of the catalog item that could not be found.
      Returns:
      The product id of the catalog item that could not be found.
    • getVariantId

      public String getVariantId()
      The variant id of the catalog item that could not be found.
      Returns:
      The variant id of the catalog item that could not be found.
    • 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