public class SetErrorHandler extends Object implements HttpHandler
| Modifier and Type | Class | Description |
|---|---|---|
static class |
SetErrorHandler.Builder |
| Constructor | Description |
|---|---|
SetErrorHandler(HttpHandler next,
int responseCode) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
String |
toString() |
public SetErrorHandler(HttpHandler next, int responseCode)
responseCode - the response code to setpublic void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionCopyright © 2026 JBoss by Red Hat. All rights reserved.