List of utility methods to do SQLException to String
String | toString(SQLException e) to String String curr = exceptionToString(e) + "\nstate:" + e.getSQLState(); while ((e = e.getNextException()) != null) curr += "\n\n" + exceptionToString(e) + "\nstate:" + e.getSQLState(); return curr; |
String | toString(Throwable x) Convert x to a String by calling its toString method. if (x instanceof SQLException) { StringBuffer s = new StringBuffer(); s.append(x); SQLException se = (SQLException) x; for (se = se.getNextException(); se != null; se = se.getNextException()) { s.append('\n'); s.append(se); int n = s.length() - 1; ... |