quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.8k stars 2.68k forks source link

Reactive routes - Support Custom Exception Handling with Bean Validation #21852

Open zailushangde opened 2 years ago

zailushangde commented 2 years ago

Description

Ability to support custom reactive route exception handlers

According to the source code https://github.com/quarkusio/quarkus/blob/bd87966540990fa68ec3769e22e67df1854b08a5/extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/ReactiveRoutesProcessor.java#L762, the Bean validation function is hardcoded.

I think it would be very useful if we could customize it.

Implementation ideas

No response

cescoffier commented 2 years ago

Why can't you use a route of type failure?

zailushangde commented 2 years ago

Why can't you use a route of type failure?

This exception cannot be caught by the type failure route.