Class DefaultExceptionMapper

java.lang.Object
org.apache.storm.daemon.ui.exceptionmappers.DefaultExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Throwable>

@Provider public class DefaultExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<Throwable>
  • Field Details

    • request

      @Inject public javax.inject.Provider<javax.servlet.http.HttpServletRequest> request
  • Constructor Details

    • DefaultExceptionMapper

      public DefaultExceptionMapper()
  • Method Details

    • toResponse

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