Class XServletLoggingExceptionHandler

    • Constructor Detail

      • XServletLoggingExceptionHandler

        public XServletLoggingExceptionHandler()
    • Method Detail

      • onException

        @Nonnull
        public com.helger.commons.state.EContinue onException​(@Nonnull
                                                              com.helger.web.scope.IRequestWebScope aRequestScope,
                                                              @Nonnull
                                                              Throwable t)
        Description copied from interface: IXServletExceptionHandler
        Invoked upon an exception. This handler can stop the propagation of an exception e.g by creating a "clean" HTML response instead of showing the stack trace. In this case the unified response provided as a parameter must be filled.
        Specified by:
        onException in interface IXServletExceptionHandler
        Parameters:
        aRequestScope - Current request scope incl. http response object. Never null.
        t - The thrown exception. Never null.
        Returns:
        EContinue.CONTINUE if further exception handlers should be invoked, EContinue.BREAK if the exception was finally handled.