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
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemNotFoundException​(java.lang.String entityType, java.lang.String integrationKey)
      Constructor to create ItemNotFoundException
      ItemNotFoundException​(java.lang.String entityType, java.lang.String integrationKey, java.lang.Throwable e)
      Constructor to create ItemNotFoundException
    • Method Summary

      • 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​(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