Package com.helger.xservlet.exception
Class XServletLoggingExceptionHandler
- java.lang.Object
-
- com.helger.xservlet.exception.XServletLoggingExceptionHandler
-
- All Implemented Interfaces:
com.helger.commons.callback.ICallback,IXServletExceptionHandler,Serializable
public class XServletLoggingExceptionHandler extends Object implements IXServletExceptionHandler
Logging implementation ofIXServletExceptionHandler. Registered by default.- Since:
- 9.0.0
- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XServletLoggingExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.helger.commons.state.EContinueonException(com.helger.web.scope.IRequestWebScope aRequestScope, Throwable t)Invoked upon an exception.
-
-
-
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:IXServletExceptionHandlerInvoked 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:
onExceptionin interfaceIXServletExceptionHandler- Parameters:
aRequestScope- Current request scope incl. http response object. Nevernull.t- The thrown exception. Nevernull.- Returns:
EContinue.CONTINUEif further exception handlers should be invoked,EContinue.BREAKif the exception was finally handled.
-
-