Class ModelRemovalExceptionContextPopulator
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.errors.ModelRemovalExceptionContextPopulator
-
- All Implemented Interfaces:
ErrorContextPopulator
public class ModelRemovalExceptionContextPopulator extends java.lang.Object implements ErrorContextPopulator
AnErrorContextPopulatorfor handlingModelRemovalExceptionContextPopulators.
-
-
Constructor Summary
Constructors Constructor Description ModelRemovalExceptionContextPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends java.lang.Exception>getExceptionClass()Specifies what exception class thisErrorContextPopulatorcan provide values for.voidpopulate(@NotNull org.apache.olingo.odata2.api.processor.ODataErrorContext context)Populates context with values specific for the exception in the context, i.e.
-
-
-
Method Detail
-
populate
public void populate(@NotNull @NotNull org.apache.olingo.odata2.api.processor.ODataErrorContext context)Description copied from interface:ErrorContextPopulatorPopulates context with values specific for the exception in the context, i.e.ODataErrorContext.getException(). At a minimum, the implementations should set HTTP status code, error code and message, etc in theODataErrorContextdepending on the exception.- Specified by:
populatein interfaceErrorContextPopulator- Parameters:
context- a context to update with the exception specific values.
-
getExceptionClass
public java.lang.Class<? extends java.lang.Exception> getExceptionClass()
Description copied from interface:ErrorContextPopulatorSpecifies what exception class thisErrorContextPopulatorcan provide values for.- Specified by:
getExceptionClassin interfaceErrorContextPopulator- Returns:
- the exception class
-
-