E - exception type supported by the provider.public interface ExceptionMapper<E extends Throwable>
| Modifier and Type | Method | Description |
|---|---|---|
Response |
toResponse(E exception) |
Map an exception to a
Response. |
Response toResponse(E exception)
Response. Returning
null results in a Response.Status.NO_CONTENT
response. Throwing a runtime exception results in a
Response.Status.INTERNAL_SERVER_ERROR response.exception - the exception to map to a response.Copyright (c) 2019 Eclipse Foundation. Licensed under Eclipse Foundation Specification License.