Probably not two Exceptions wrapped in each other, but additional information in the SQLException.
You know most Exceptions have a "message" field? Well, SQLExceptions have two additional fields, code and SQL state. One if a
String, and the other is an int. You can print them out quite simply with
their get methods. You will have to look in the vendor's documentation to find out what the code and state mean.
Probably not a good idea to write code to catch a single error state; you need to find out what it means and check whether there is anything in your code which ought to be corrected.