Class ExceptionDefaultHandler
- java.lang.Object
-
- io.streamthoughts.azkarra.http.error.ExceptionDefaultHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class ExceptionDefaultHandler extends Object implements io.undertow.server.HttpHandler
AnHttpHandler
which used for catching any exception thrown during request execution.
-
-
Constructor Summary
Constructors Constructor Description ExceptionDefaultHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRequest(io.undertow.server.HttpServerExchange exchange)
static void
sendErrorMessage(io.undertow.server.HttpServerExchange exchange, Throwable throwable)
-
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange)
- Specified by:
handleRequest
in interfaceio.undertow.server.HttpHandler
-
sendErrorMessage
public static void sendErrorMessage(io.undertow.server.HttpServerExchange exchange, Throwable throwable)
-
-