java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException
de.hybris.platform.odata2services.odata.persistence.exception.ItemNotFoundException
All Implemented Interfaces:
Serializable

@Deprecated(since="2205", forRemoval=true) public class ItemNotFoundException extends org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException
Deprecated, for removal: This API element is subject to removal in a future version.
Exception to throw for error scenarios produced by invalid Data. Will result in HttpStatus 404
See Also:
  • Constructor Details

    • ItemNotFoundException

      public ItemNotFoundException(PersistenceContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Instantiates this exception
      Parameters:
      context - context for the exception to instantiate.
    • ItemNotFoundException

      public ItemNotFoundException(ItemSearchRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Instantiates this exception for the specified item search request
      Parameters:
      request - item search request that resulted in not finding the item in the persistence storage
    • ItemNotFoundException

      public ItemNotFoundException(String entityType, String integrationKey)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor to create ItemNotFoundException
      Parameters:
      entityType - entity type
      integrationKey - integration key
    • ItemNotFoundException

      public ItemNotFoundException(String entityType, String integrationKey, Throwable e)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor to create ItemNotFoundException
      Parameters:
      entityType - entity type
      integrationKey - integration key
      e - exception to get Message from
  • Method Details

    • getEntityType

      public String getEntityType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets entity type
      Returns:
      entity/item type searched
    • getIntegrationKey

      public String getIntegrationKey()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets integration key
      Returns:
      integration key value by which the item was searched