public class WebApplicationExceptionMapper
extends java.lang.Object
implements javax.ws.rs.ext.ExceptionMapper<javax.ws.rs.WebApplicationException>
WebApplicationException
, that comprises ClientErrorException
and ServerErrorException
.
The mapper copies all header and creates a ApiError
as message body with the exception
message as title.
Constructor and Description |
---|
WebApplicationExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
toResponse(javax.ws.rs.WebApplicationException exception) |