I am using JDBC to connect to MySQL in my java project. I have implemented some check constraints in the mySQL table.
I have a form in which the user enters some values and submits it to the MySQL table. If a constraint is violated, Java gives an SQLException.
My aim is to display as a popup message as to which condition was violated in my table.
How do I retreive this information in java?
I tried a logger, but it only shows a lengthy error message in console.
You can check out this:-