-
Notifications
You must be signed in to change notification settings - Fork 3k
Allow forcing exception unwrapping even when parent type mappers exist #50730
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
base: main
Are you sure you want to change the base?
Allow forcing exception unwrapping even when parent type mappers exist #50730
Conversation
This comment has been minimized.
This comment has been minimized.
56ef700 to
a84b26d
Compare
This comment has been minimized.
This comment has been minimized.
|
🎊 PR Preview a8d372e has been successfully built and deployed to https://quarkus-pr-main-50730-preview.surge.sh/version/main/guides/
|
This comment has been minimized.
This comment has been minimized.
a84b26d to
d10b3c1
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
d10b3c1 to
d2d9f1f
Compare
Status for workflow
|
Status for workflow
|
Adds support for the always attribute in @UnwrapException annotation to force exception unwrapping even when exception mappers exist for parent types.
This makes tests in the reproducer pass:
https://github.com/user-attachments/files/20574949/quarkus-48197-reproducer.zip
Main Changes:
Added always boolean parameter to @UnwrapException annotation (default: false) and propagated it.
Updated RuntimeExceptionMapper exception mapping strategy to handle the always flag:
Reworked UnwrappedExceptionTest to add more cases and more explicit names, and achieve 100% coverage on new code in RuntimeExceptionMapper.
Closes: UnwrapException ineffective when a subclass of the declared exception is mapped via ServerExceptionMapper #48197