@Provider public class WebApplicationExceptionMapper extends AbstractMapper<javax.ws.rs.WebApplicationException>
error
Constructor and Description |
---|
WebApplicationExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response.Status |
responseStatus()
Returns the response status to be given when the exception occurs.
|
javax.ws.rs.core.Response |
toResponse(javax.ws.rs.WebApplicationException e)
Extracts and returns the response from a WebApplicationException.
|
messageFrom, response
public javax.ws.rs.core.Response toResponse(javax.ws.rs.WebApplicationException e)
toResponse
in interface javax.ws.rs.ext.ExceptionMapper<javax.ws.rs.WebApplicationException>
toResponse
in class AbstractMapper<javax.ws.rs.WebApplicationException>
e
- WebApplicationException that was thrownpublic javax.ws.rs.core.Response.Status responseStatus()
AbstractMapper
responseStatus
in class AbstractMapper<javax.ws.rs.WebApplicationException>