vertx-web icon indicating copy to clipboard operation
vertx-web copied to clipboard

Exeptionhandler not working correctly

Open Freetoplay951 opened this issue 1 year ago • 5 comments

[02:52:02] Unhandled exception in router
[02:52:03] Unhandled exception in router
[02:52:03] Unhandled exception in router
[02:52:08] Unhandled exception in router

I use:

Vertx vertex = Vertx.vertx();
Router router = Router.router(vertex);

router.route().handler(SessionHandler.create(LocalSessionStore.create(vertex)));
router.routeWithRegex("/files/.*").handler(this::handleFileRequests);
router.route().handler(BodyHandler.create()).handler(this::handleRequests);
router.route().failureHandler(failureContext -> {
    failureContext.response().setStatusCode(404).end();
});

HttpServer innerServer = vertex
        .createHttpServer()
        .requestHandler(router)
        .exceptionHandler(error -> {
        })
        .listen(port, handler -> {
        });

Freetoplay951 avatar Jun 11 '24 14:06 Freetoplay951