Example - usingJDBC-ODBC Bridge -IV
catch (SQLException ex) {
// A SQLException was generated. Catch it and
// display the error information. Note that there
// could be multiple error objects chained
System.out.println ("\n*** SQLException caught***\n");
System.out.println ("SQLState: " +
System.out.println ("Message: " +
System.out.println ("Vendor: " +
ex = ex.getNextException ();