@Provider public class CatchAllExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<Throwable>
We don't want Jersey to re-throw anything to the HTTP container as this would result in logging the exception twice and possibly in interspersed illegible stack traces (see #484).
2 additional aspects are handled: - Logging the exception. - Enriching the response with an error entity.
| Modifier and Type | Field and Description |
|---|---|
(package private) javax.servlet.http.HttpServletRequest |
request |
| Constructor and Description |
|---|
CatchAllExceptionMapper() |
@Context javax.servlet.http.HttpServletRequest request
public CatchAllExceptionMapper()
public javax.ws.rs.core.Response toResponse(Throwable e)
toResponse in interface javax.ws.rs.ext.ExceptionMapper<Throwable>Copyright © 2017. All Rights Reserved.