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