de.deepamehta.plugins.webservice.provider
Class CatchAllExceptionMapper
java.lang.Object
de.deepamehta.plugins.webservice.provider.CatchAllExceptionMapper
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<Throwable>
@Provider
public class CatchAllExceptionMapper
- extends Object
- implements javax.ws.rs.ext.ExceptionMapper<Throwable>
Maps all Throwables but WebApplicationExceptions to a 500 (Internal Server Error) response.
A WebApplicationException's response is returned directly.
We don't want Jersey to re-throw anything against the servlet container as this would result
in an interspersed illegible stack trace (see #484).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private Logger logger
CatchAllExceptionMapper
public CatchAllExceptionMapper()
toResponse
public javax.ws.rs.core.Response toResponse(Throwable e)
- Specified by:
toResponse
in interface javax.ws.rs.ext.ExceptionMapper<Throwable>
Copyright © 2014. All Rights Reserved.