-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Machine friendly exceptions #4
Comments
is this one the same as #17? |
@joewhite101 yes could be considered as duplicate. I'll close #17 and continue the discussion on this one. |
I can try to integrate it using https://github.com/cloudstark/quarkus-zalando-problem-extension extension. |
Definitively worth to try! Awesome if someone already made the integration. |
@danielpetisme I can give it a shot with a new extension published recently I'm contributing to that fits this issue pretty well. I've already had a quick look, and it would save me a lot of time to know if there will be some changes needed in the frontend as well? Can frontend app leverage problem schema to display better error messages etc? |
Hi, The front end is already configured to handle problem payloads. How can I help you to move forward? |
Thanks for hints, that sounds very good. |
🤔 To try to force an error, you can startup a generated app, log with the admin account ( |
Thanks again, I see that quarkus generator uses raw |
@danielpetisme you may want to have a first look at draft PR with first working implementation, I've checked both maven and gradle versions with multiple languages (but only selected subset of exceptions) - looks ok. One thing that worries me a bit is that I didn't have to change a single test and all are green - do you think I should address it somehow and include some checks on response bodies ( |
…f ResponseUtil class Fix jhipster#4
JHipster Spring integrates Zalando problems (more precisely the spring version of the lib) to transform Java exception into machine readable exceptions (ie. HTTP status code + a JSON document).
Quarkus does not provide out of the box such feature. The objective is to emulate the same behavior (or simply try to integrate the vanilla Zalando problem lib) in order to be pluggable to the default front applications.
The text was updated successfully, but these errors were encountered: