Class EJBExceptionMapper
java.lang.Object
io.github.belgif.rest.problem.ee.jaxrs.EJBExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<javax.ejb.EJBException>
@Provider
public class EJBExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<javax.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
toResponse
(javax.ejb.EJBException exception)
-
Constructor Details
-
EJBExceptionMapper
public EJBExceptionMapper()
-
-
Method Details
-
toResponse
public javax.ws.rs.core.Response toResponse(javax.ejb.EJBException exception) - Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<javax.ejb.EJBException>
-