in src/main/java/org/apache/commons/dbutils/DbUtils.java [320:330]
public static void printStackTrace(final SQLException e, final PrintWriter pw) {
SQLException next = e;
while (next != null) {
next.printStackTrace(pw);
next = next.getNextException();
if (next != null) {
pw.println("Next SQLException:");
}
}
}