Class WildcardExceptionMapper

    • Method Detail

      • 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