Package org.apache.storm.daemon.ui.exceptionmappers

# Class DefaultExceptionMapper

java.lang.Object
org.apache.storm.daemon.ui.exceptionmappers.DefaultExceptionMapper

All Implemented Interfaces:
  `jakarta.ws.rs.ext.ExceptionMapper<Throwable>`

@Provider public class DefaultExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<Throwable>

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `jakarta.inject.Provider<jakarta.servlet.http.HttpServletRequest>`
  `request`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultExceptionMapper()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `jakarta.ws.rs.core.Response`
  `toResponse(Throwable throwable)`
  toResponse.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### request

    @Inject public jakarta.inject.Provider<jakarta.servlet.http.HttpServletRequest> request

- ## Constructor Details

  - ### DefaultExceptionMapper

    public DefaultExceptionMapper()

- ## Method Details

  - ### toResponse

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