Interface ExceptionTranslator

    • 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 this ErrorContextPopulator can provide values for.
      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.
      Populates context with values specific for the exception in the context, i.e.
      org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException translate​(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: ErrorContextPopulator
        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 the ODataErrorContext depending on the exception.
        Specified by:
        populate in interface ErrorContextPopulator
        Parameters:
        context - a context to update with the exception specific values.