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:
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 Summary
ConstructorsConstructorDescriptionItemNotFoundException(PersistenceContext context) Deprecated, for removal: This API element is subject to removal in a future version.Instantiates this exceptionItemNotFoundException(ItemSearchRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Instantiates this exception for the specified item search requestItemNotFoundException(String entityType, String integrationKey) Deprecated, for removal: This API element is subject to removal in a future version.Constructor to create ItemNotFoundExceptionItemNotFoundException(String entityType, String integrationKey, Throwable e) Deprecated, for removal: This API element is subject to removal in a future version.Constructor to create ItemNotFoundException -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Gets entity typeDeprecated, for removal: This API element is subject to removal in a future version.Gets integration keyMethods inherited from class org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException
getCode, getHttpStatus, getLocaleMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ItemNotFoundException
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
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
Deprecated, for removal: This API element is subject to removal in a future version.Constructor to create ItemNotFoundException- Parameters:
entityType- entity typeintegrationKey- integration key
-
ItemNotFoundException
Deprecated, for removal: This API element is subject to removal in a future version.Constructor to create ItemNotFoundException- Parameters:
entityType- entity typeintegrationKey- integration keye- exception to get Message from
-
-
Method Details
-
getEntityType
Deprecated, for removal: This API element is subject to removal in a future version.Gets entity type- Returns:
- entity/item type searched
-
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
-
ItemNotFoundException