5
votes

Does quarkus provides an exception handler?

I wanted something like Spring's ControllerAdvice.

https://www.baeldung.com/exception-handling-for-rest-with-spring

1

1 Answers

17
votes

The equivalent in the Quarkus/RESTEasy world is called an ExceptionMapper.

See here for instance: https://howtodoinjava.com/resteasy/resteasy-exceptionmapper-example/ .