Class ODataExceptionMapperImpl

java.lang.Object
org.apache.olingo.odata2.core.rest.ODataExceptionMapperImpl
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>

@Provider public class ODataExceptionMapperImpl extends Object implements javax.ws.rs.ext.ExceptionMapper<Exception>
Creates an error response according to the format defined by the OData standard if an exception occurs that is not handled elsewhere.
  • Constructor Details

    • ODataExceptionMapperImpl

      public ODataExceptionMapperImpl()
  • Method Details

    • toResponse

      public javax.ws.rs.core.Response toResponse(Exception exception)
      Specified by:
      toResponse in interface javax.ws.rs.ext.ExceptionMapper<Exception>