Class CustomODataExceptionAwareErrorCallback

  • All Implemented Interfaces:
    org.apache.olingo.odata2.api.ODataCallback, org.apache.olingo.odata2.api.processor.ODataErrorCallback

    public class CustomODataExceptionAwareErrorCallback
    extends java.lang.Object
    implements org.apache.olingo.odata2.api.processor.ODataErrorCallback
    ODataErrorCallback implementation that populates the Context with Status, ErrorCode and Message for custom OData runtime exceptions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.olingo.odata2.api.processor.ODataResponse handleError​(org.apache.olingo.odata2.api.processor.ODataErrorContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomODataExceptionAwareErrorCallback

        public CustomODataExceptionAwareErrorCallback()
    • Method Detail

      • handleError

        public org.apache.olingo.odata2.api.processor.ODataResponse handleError​(org.apache.olingo.odata2.api.processor.ODataErrorContext context)
        Specified by:
        handleError in interface org.apache.olingo.odata2.api.processor.ODataErrorCallback