Class DefaultExceptionMapper

java.lang.Object
io.github.belgif.rest.problem.ee.jaxrs.DefaultExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>

@Provider public class DefaultExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<Exception>
Default ExceptionMapper for mapping unhandled exceptions to InternalServerErrorProblem.
See Also:
  • Constructor Details

    • DefaultExceptionMapper

      public DefaultExceptionMapper()
  • Method Details

    • toResponse

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