The com.ibm.db2.jcc.DB2Diagnosable interface provides a mechanism for getting additional diagnostic information from an SQLException.
public DB2Sqlca getSqlca();
Returns a DB2Sqlca object from a java.sql.Exception that is produced under a IBM Data Server Driver for JDBC and SQLJ.
public Throwable getThrowable();
Returns a java.lang.Throwable object from a java.sql.Exception that is produced under a IBM Data Server Driver for JDBC and SQLJ.
static public void printTrace(java.io.PrintWriter printWriter,
String header);
Prints diagnostic information after a java.sql.Exception is thrown under a IBM Data Server Driver for JDBC and SQLJ.