Package io.undertow.servlet.api
Class LoggingExceptionHandler
java.lang.Object
io.undertow.servlet.api.LoggingExceptionHandler
- All Implemented Interfaces:
ExceptionHandler
An exception handler that
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLoggingExceptionHandler(Map<Class<? extends Throwable>, io.undertow.servlet.api.LoggingExceptionHandler.ExceptionDetails> exceptionDetails) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanhandleThrowable(HttpServerExchange exchange, jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, Throwable t) Handles an exception.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
LoggingExceptionHandler
-
-
Method Details
-
handleThrowable
public boolean handleThrowable(HttpServerExchange exchange, jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, Throwable t) Description copied from interface:ExceptionHandlerHandles an exception. If this method returns true then the request/response cycle is considered to be finished, and no further action will take place, if this returns false then standard error page redirect will take place. The default implementation of this simply logs the exception and returns false, allowing error page and async context error handling to proceed as normal.- Specified by:
handleThrowablein interfaceExceptionHandler- Parameters:
exchange- The exchangerequest- The requestresponse- The responset- The exception- Returns:
truetrue if the error was handled by this method
-
builder
-