javax.ws.rs.core.Response.
Providers implementing ExceptionMapper contract must be either programmatically
registered in a JAX-RS runtime or must be annotated with
@Provider annotation to be automatically discovered
by the JAX-RS runtime during a provider scanning phase.
Provider, javax.ws.rs.core.Response
| Modifier and Type | Method and Description |
|---|---|
| public Response | Returns: a response mapped from the supplied exception.the exception to map to a response. exception)Map an exception to a |
| toResponse | back to summary |
|---|---|
| public Response toResponse(E exception) Map an exception to a
| |