You need to look at the documentation for your particular RDBMS as the SQLException wraps errors thrown by the database. Look at the possible errors that can be thrown.
0
woodmouse347Author Commented:
I am using MySQL Server. Will I get the documentation on the ner?
Yes. Have a look at http://www.bitbybit.dk/mysqlfaq/addnote.html?ch=ch15_0_0
You could go through them and incorporate them into your programme this way. Alternatively, try and locate a C API header file with the system error codes in it.