HttpHandlerpublic class ExceptionHandler extends java.lang.Object implements HttpHandler
| Modifier and Type | Field | Description |
|---|---|---|
static AttachmentKey<java.lang.Throwable> |
THROWABLE |
| Constructor | Description |
|---|---|
ExceptionHandler(HttpHandler handler) |
| Modifier and Type | Method | Description |
|---|---|---|
<T extends java.lang.Throwable> |
addExceptionHandler(java.lang.Class<T> clazz,
HttpHandler handler) |
|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
public static final AttachmentKey<java.lang.Throwable> THROWABLE
public ExceptionHandler(HttpHandler handler)
public void handleRequest(HttpServerExchange exchange) throws java.lang.Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangejava.lang.Exceptionpublic <T extends java.lang.Throwable> ExceptionHandler addExceptionHandler(java.lang.Class<T> clazz, HttpHandler handler)
Copyright © 2018. All rights reserved.