Class GenericServiceExceptionMapper

java.lang.Object
org.apache.ofbiz.ws.rs.spi.AbstractExceptionMapper
org.apache.ofbiz.ws.rs.spi.impl.GenericServiceExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<GenericServiceException>

@Provider public class GenericServiceExceptionMapper extends AbstractExceptionMapper implements javax.ws.rs.ext.ExceptionMapper<GenericServiceException>
Exception Mapper for GenericServiceException. Catches GenericServiceException and handles it and prepares appropriate response.
  • Constructor Details

    • GenericServiceExceptionMapper

      public GenericServiceExceptionMapper()
  • Method Details

    • toResponse

      public javax.ws.rs.core.Response toResponse(GenericServiceException gse)
      To response response.
      Specified by:
      toResponse in interface javax.ws.rs.ext.ExceptionMapper<GenericServiceException>
      Parameters:
      gse - GenericServiceException
      Returns:
      Response