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 -
Method Summary
Modifier and TypeMethodDescriptionvoidsetShowStackTrace(Boolean showStackTrace) Set whether the full stack trace should be returned as part of the error response.javax.ws.rs.core.ResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fcrepo.http.commons.exceptionhandlers.ExceptionDebugLogging
debugException
-
Constructor Details
-
WildcardExceptionMapper
public WildcardExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponsein interfacejavax.ws.rs.ext.ExceptionMapper<Exception>
-
setShowStackTrace
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
-