Class WebApplicationExceptionMapper
java.lang.Object
io.github.belgif.rest.problem.ee.server.jaxrs.WebApplicationExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<jakarta.ws.rs.WebApplicationException>
@Provider
public class WebApplicationExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<jakarta.ws.rs.WebApplicationException>
ExceptionMapper for unhandled WebApplicationExceptions.
In the absence of this ExceptionMapper, WebApplicationExceptions thrown by the JAX-RS server runtime would get
mapped to InternalServerErrorProblem by the DefaultExceptionMapper.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsetoResponse(jakarta.ws.rs.WebApplicationException exception)
-
Constructor Details
-
WebApplicationExceptionMapper
public WebApplicationExceptionMapper()
-
-
Method Details
-
toResponse
public jakarta.ws.rs.core.Response toResponse(jakarta.ws.rs.WebApplicationException exception) - Specified by:
toResponsein interfacejakarta.ws.rs.ext.ExceptionMapper<jakarta.ws.rs.WebApplicationException>
-