List of utility methods to do SQLWarning to String
String | toString(SQLWarning sqlw) Convert the given SQLWarning into a String. StringBuffer buffer = new StringBuffer(); String newLine = System.getProperty("line.separator"); do { buffer.append("error code = ").append(sqlw.getErrorCode()).append(newLine); buffer.append("localized message = ").append(sqlw.getLocalizedMessage()).append(newLine); buffer.append("message = ").append(sqlw.getMessage()).append(newLine); buffer.append("sqlstate = ").append(sqlw.getSQLState()).append(newLine); sqlw = sqlw.getNextWarning(); ... |
String | toString(SQLWarning warnings) to String if (warnings == null) { return null; StringBuilder sb = new StringBuilder(); for (Throwable t : warnings) { sb.append("SQL Exception [" + t + "] "); return sb.toString(); ... |