Class ItemNotFoundException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ItemNotFoundException
    extends org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException
    Exception to throw for error scenarios produced by invalid Data. Will result in HttpStatus 404
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEntityType()
      Gets entity type
      java.lang.String getIntegrationKey()
      Gets integration key
      • Methods inherited from class org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException

        getCode, getHttpStatus, getLocale
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ItemNotFoundException

        public ItemNotFoundException​(PersistenceContext context)
        Instantiates this exception
        Parameters:
        context - context for the exception to instantiate.
      • ItemNotFoundException

        public ItemNotFoundException​(ItemSearchRequest request)
        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​(java.lang.String entityType,
                                     java.lang.String integrationKey)
        Constructor to create ItemNotFoundException
        Parameters:
        entityType - entity type
        integrationKey - integration key
      • ItemNotFoundException

        public ItemNotFoundException​(java.lang.String entityType,
                                     java.lang.String integrationKey,
                                     java.lang.Throwable e)
        Constructor to create ItemNotFoundException
        Parameters:
        entityType - entity type
        integrationKey - integration key
        e - exception to get Message from
    • Method Detail

      • getEntityType

        public java.lang.String getEntityType()
        Gets entity type
        Returns:
        entity/item type searched
      • getIntegrationKey

        public java.lang.String getIntegrationKey()
        Gets integration key
        Returns:
        integration key value by which the item was searched