Open gsmet opened 4 years ago
/cc @Sanne
Also related: #10154
javax.transaction.RollbackException
is a checked exception and so we need to wrap it and RESTEasy should be able to unwrap it: https://github.com/quarkusio/quarkus/blob/master/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java#L331-L332
I have to idea where to fix the arjuna WARN though. Maybe @mmusgrov knows?
When a constraint violation is raised when saving an Hibernate entity, I end up with the following content in the log:
Two comments here:
RollbackException
is wrapped really doesn't help properly catching things in RESTEasy and I would say you're forced to catch things as you probably don't want that quantity of log for some invalid user input.Could we try to brainstorm about how we can improve this?
/cc @Sanne @mkouba @stuartwdouglas