-
Notifications
You must be signed in to change notification settings - Fork 92
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
No access to ConstraintViolationException.constraintName #1369
Comments
You are right, we don't extract the code from the error message. For future reference, at the moment the error message for Postgres is:
On top of this, we don't seem to throw the right exception when there is a constraint violation. I've only given this a quick look though. |
Thank you @DavideD for the very quick reply. Maybe worth to open another issue to track the Exception type issue, this seems to be more serious? Best regards. |
This was something I discusses with @tsegismont on the train one day recently. Basically, the whole exception mapping stuff in Hibernate (IIRC) is currently unimplementable in HR because the SQL client doesn't expose the error codes we would need to implement that. So this is actually bigger problem (really a missing feature). I believe there is now issue open against the Vert.x client. |
The SQL state or vendor error code are now accessible from the exception |
Hello Hibernate team,
I'm migrating an existing app to Quarkus and I want also to use Hibernate reactive.
Quarkus platform version is: 2.11.1.Final
In the current dependency pulled in: org.hibernate.reactive:hibernate-reactive-core:1.1.7.Final, it seems there is no access to the "constraintName" property of ConstraintViolationException class.
Is this on purpose, then how can I check the reason of the violation.
Could you please have a look?
Regards,
Daniel
The text was updated successfully, but these errors were encountered: