Interface ExceptionTranslator
-
- All Superinterfaces:
ErrorContextPopulator
- All Known Implementing Classes:
DefaultExceptionTranslator
@Deprecated(since="1905.07-CEP", forRemoval=true) public interface ExceptionTranslator extends ErrorContextPopulatorDeprecated, for removal: This API element is subject to removal in a future version.UseErrorContextPopulatorinstead.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.lang.Class<IntegrationAttributeException>getExceptionClass()Deprecated, for removal: This API element is subject to removal in a future version.Specifies what exception class thisErrorContextPopulatorcan provide values for.default voidpopulate(org.apache.olingo.odata2.api.processor.ODataErrorContext context)Deprecated, for removal: This API element is subject to removal in a future version.Populates context with values specific for the exception in the context, i.e.org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationExceptiontranslate(IntegrationAttributeException e)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
translate
org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException translate(IntegrationAttributeException e)
Deprecated, for removal: This API element is subject to removal in a future version.
-
populate
default void populate(org.apache.olingo.odata2.api.processor.ODataErrorContext context)
Deprecated, for removal: This API element is subject to removal in a future version.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
default java.lang.Class<IntegrationAttributeException> getExceptionClass()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ErrorContextPopulatorSpecifies what exception class thisErrorContextPopulatorcan provide values for.- Specified by:
getExceptionClassin interfaceErrorContextPopulator- Returns:
- the exception class
-
-