Searching Solution for this question for long period but still unmanaged to get a answer for this, I’m trying to make a search box in my application made with JAVA.
I want to catch the exception from database and telling user that column doesn’t exist or duplication data, may i know how could i do this ?
This is not really an easy thing to do and the solution will depend a lot on the vendor of the SQL connection (ie, mySQL, oracle, etc)
I have shown one way to do this using pattern matching of the SQLException error message