Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exeptionhandler not working correctly #5230

Closed
Freetoplay951 opened this issue Jun 11, 2024 · 1 comment
Closed

Exeptionhandler not working correctly #5230

Freetoplay951 opened this issue Jun 11, 2024 · 1 comment

Comments

@Freetoplay951
Copy link

Freetoplay951 commented Jun 11, 2024

[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 -> {
        });
@tsegismont
Copy link
Contributor

Duplicates vert-x3/vertx-web#2625

@tsegismont tsegismont closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants