Coder Social home page Coder Social logo

Comments (9)

gsmet avatar gsmet commented on August 30, 2024 1

Oh yeah, I totally agree but I wanted to know the use case as it might be something we want to add as default anyway for better user experience.

from quarkus.

quarkus-bot avatar quarkus-bot commented on August 30, 2024

/cc @FroMage (resteasy-reactive), @geoand (resteasy-reactive), @stuartwdouglas (resteasy-reactive)

from quarkus.

geoand avatar geoand commented on August 30, 2024

I think this makes sense

from quarkus.

gsmet avatar gsmet commented on August 30, 2024

Is it a custom exception that you want to unwrap? Or something that would make sense in general?

from quarkus.

geoand avatar geoand commented on August 30, 2024

It makes sense to have this be configurable.
I planned to do it when someone asked 😀

from quarkus.

geoand avatar geoand commented on August 30, 2024

One question I do have however is whether the feature should be enabled by a configuration property or some new annotation.

The reason the configuration property (although totally reasonable) can be suboptimal is that the IDE doesn't provide any assistance or validation of the value

from quarkus.

geoand avatar geoand commented on August 30, 2024

#42094 is what I have in mind

from quarkus.

kevinferrare avatar kevinferrare commented on August 30, 2024

Thank you for the quick and welcoming feedback!
@gsmet

Is it a custom exception that you want to unwrap? Or something that would make sense in general?
It is both, we have java.util.concurrent.CompletionException and a custom exception, thrown by an internal library.

@geoand
After opening the issue, I started to wonder what would be the drawback of also optionally providing the option of just unwrapping all exceptions unconditionally until a handler is found.

In our use case, I don't think this would lead to unwanted behaviours.

from quarkus.

geoand avatar geoand commented on August 30, 2024

After opening the issue, I started to wonder what would be the drawback of also optionally providing the option of just unwrapping all exceptions unconditionally until a handler is found.

Although this might make sense, it is however not how the JAX-RS / Jakarta REST specifies things, so it's best not to make this the default behavior.

from quarkus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.