Ask questions and see you at 4th, February, 6.PM. CET: http://www.ustream.tv/channel/adambien
Also checkout recent episode:
Please keep the questions Java EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions.
Hey :)
So my question is about JAX-RS application.
I'm preparing an SPA application with JAVA EE 8 that communicates with Postgres.
Currently i'm stuck on ConstraintValidationException. I have made @Provider that implements ExceptionMapper and wanted to return 400 Bad Request instead of 500. The thing is that i wrap INSERT with transaction and then after constraint failing, i get RollbackException instead. This is too generic for me. What i wanted to do is to pass field(s) that caused the constraint validation exception to frontend.
What should be a good approach here?
--Maciej