Class ODataRuntimeApplicationExceptionContextPopulator
java.lang.Object
de.hybris.platform.odata2services.odata.errors.ODataRuntimeApplicationExceptionContextPopulator
- All Implemented Interfaces:
ErrorContextPopulator
public final class ODataRuntimeApplicationExceptionContextPopulator
extends Object
implements ErrorContextPopulator
An
ErrorContextPopulator for handling ODataRuntimeApplicationExceptions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException>Specifies what exception class thisErrorContextPopulatorcan provide values for.voidpopulate(org.apache.olingo.odata2.api.processor.ODataErrorContext context) Populates context with values specific for the exception in the context, i.e.
-
Constructor Details
-
ODataRuntimeApplicationExceptionContextPopulator
public ODataRuntimeApplicationExceptionContextPopulator()
-
-
Method Details
-
populate
public void populate(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 Class<org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException> getExceptionClass()Description copied from interface:ErrorContextPopulatorSpecifies what exception class thisErrorContextPopulatorcan provide values for.- Specified by:
getExceptionClassin interfaceErrorContextPopulator- Returns:
- the exception class
-