public class ExceptionHandler extends Object implements HttpHandler
| Modifier and Type | Field and Description |
|---|---|
static AttachmentKey<Throwable> |
THROWABLE |
| Constructor and Description |
|---|
ExceptionHandler(HttpHandler handler) |
| Modifier and Type | Method and 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 © 2021 JBoss by Red Hat. All rights reserved.