ef-labs / vertx-jersey

Run jersey in vert.x
MIT License
150 stars 47 forks source link

Support runtime exceptions in VertxRequestProcessor.handle #36

Closed meshuga closed 9 years ago

meshuga commented 9 years ago

Runtime exceptions that are thrown in the filters which extend from VertxRequestProcessor are not properly handled e.g.

public class SomeFilter implements VertxRequestProcessor {
    @Override
    public void process(HttpServerRequest vertxRequest, ContainerRequest jerseyRequest, Handler<Void> done) {
        throw new RuntimeException();
    }
}

When an exception is thrown, the connection is not immediately closed and no error log is shown.