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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsetoResponse(javax.ejb.EJBException exception) 
- 
Constructor Details- 
EJBExceptionMapperpublic EJBExceptionMapper()
 
- 
- 
Method Details- 
toResponsepublic javax.ws.rs.core.Response toResponse(javax.ejb.EJBException exception) - Specified by:
- toResponsein interface- javax.ws.rs.ext.ExceptionMapper<javax.ejb.EJBException>
 
 
-