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 Details

  • Method Details

    • toResponse

      public javax.ws.rs.core.Response toResponse(Exception e)
      Specified by:
      toResponse in interface javax.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