Class ItemNotFoundException
- 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:
java.io.Serializable
public class ItemNotFoundException extends org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationExceptionException to throw for error scenarios produced by invalid Data. Will result in HttpStatus 404- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemNotFoundException(PersistenceContext context)Instantiates this exceptionItemNotFoundException(ItemSearchRequest request)Instantiates this exception for the specified item search requestItemNotFoundException(java.lang.String entityType, java.lang.String integrationKey)Constructor to create ItemNotFoundExceptionItemNotFoundException(java.lang.String entityType, java.lang.String integrationKey, java.lang.Throwable e)Constructor to create ItemNotFoundException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEntityType()Gets entity typejava.lang.StringgetIntegrationKey()Gets integration key-
Methods inherited from class org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException
getCode, getHttpStatus, getLocale
-
-
-
-
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 typeintegrationKey- integration key
-
ItemNotFoundException
public ItemNotFoundException(java.lang.String entityType, java.lang.String integrationKey, java.lang.Throwable e)Constructor to create ItemNotFoundException- Parameters:
entityType- entity typeintegrationKey- integration keye- exception to get Message from
-
-