Class WildcardExceptionMapper
- java.lang.Object
-
- org.fcrepo.http.commons.exceptionhandlers.WildcardExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>,ExceptionDebugLogging
@Provider public class WildcardExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<Exception>, ExceptionDebugLogging
Catch all the exceptions!- Author:
- lsitu, awoods, cbeer, fasseg
-
-
Constructor Summary
Constructors Constructor Description WildcardExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetShowStackTrace(Boolean showStackTrace)Set whether the full stack trace should be returned as part of the error response.javax.ws.rs.core.ResponsetoResponse(Exception e)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fcrepo.http.commons.exceptionhandlers.ExceptionDebugLogging
debugException
-
-
-
-
Constructor Detail
-
WildcardExceptionMapper
public WildcardExceptionMapper()
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(Exception e)
- Specified by:
toResponsein interfacejavax.ws.rs.ext.ExceptionMapper<Exception>
-
setShowStackTrace
public void setShowStackTrace(Boolean showStackTrace)
Set whether the full stack trace should be returned as part of the error response. This may be a bad idea if the stack trace is exposed to the public.- Parameters:
showStackTrace- the boolean value of showing stack trace
-
-