Class InvalidClassTypeExceptionContextPopulator
java.lang.Object
de.hybris.platform.odata2services.odata.errors.InvalidClassTypeExceptionContextPopulator
- All Implemented Interfaces:
ErrorContextPopulator
public class InvalidClassTypeExceptionContextPopulator
extends Object
implements ErrorContextPopulator
An
ErrorContextPopulator for handling InvalidClassTypeException.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSpecifies 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
-
InvalidClassTypeExceptionContextPopulator
public InvalidClassTypeExceptionContextPopulator()
-
-
Method Details
-
populate
public void populate(org.apache.olingo.odata2.api.processor.ODataErrorContext context) Populates 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
Specifies what exception class thisErrorContextPopulatorcan provide values for.- Specified by:
getExceptionClassin interfaceErrorContextPopulator- Returns:
- the exception class
-