Class EJBExceptionMapper

java.lang.Object
io.github.belgif.rest.problem.ee.server.jaxrs.EJBExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<jakarta.ejb.EJBException>

@Provider public class EJBExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<jakarta.ejb.EJBException>
ExceptionMapper for unhandled EJBExceptions.

Routes to ProblemExceptionMapper when the EJBException is caused by a Problem exception. This is a workaround to avoid having to annotate Problem with @ApplicationException. Otherwise, routes to DefaultExceptionMapper.

See Also:
  • Constructor Details

    • EJBExceptionMapper

      public EJBExceptionMapper()
  • Method Details

    • toResponse

      public jakarta.ws.rs.core.Response toResponse(jakarta.ejb.EJBException exception)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<jakarta.ejb.EJBException>