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
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public <T extends Throwable> ExceptionHandler addExceptionHandler(Class<T> clazz, HttpHandler handler)
Copyright © 2020 JBoss by Red Hat. All rights reserved.