Class ItemNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.hybris.platform.integrationservices.search.ItemNotFoundException
All Implemented Interfaces:
Serializable

public class ItemNotFoundException extends RuntimeException
Exception thrown when a single item search does not find an item.
See Also:
  • Constructor Details

    • ItemNotFoundException

      public ItemNotFoundException(@Nullable IntegrationItem item)
      Instantiates this exception for the specified item search request
      Parameters:
      item - sample of the item that was searched and was not found in the persistence storage.
  • Method Details

    • getRequestedItem

      @Nullable public IntegrationItem getRequestedItem()
      Retrieves info about the item searched.
      Returns:
      presentation of the item being searched or null, if this information is not available.
    • getIntegrationKey

      public String getIntegrationKey()
      Retrieves integration key of the item that was searched.
      Returns:
      integration key value for the item to find.