Java Utililty Methods SQLException to String

List of utility methods to do SQLException to String

Description

The list of methods to do SQLException to String are organized into topic(s).

Method

StringtoString(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;
StringtoString(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;
...