@Test public void testToString() { final String toString = SQLUtils.toString(new SQLException("test ex")); assertTrue(toString.startsWith("java.sql.SQLException: test ex")); }
public static String toString(SQLException e) { String curr = exceptionToString(e) + "\nstate:" + e.getSQLState(); while ((e = e.getNextException()) != null) curr += "\n\n" + exceptionToString(e) + "\nstate:" + e.getSQLState(); return curr; }
SQLUtils { public static String toString(SQLException e) { String curr = exceptionToString(e) + "\nstate:" + e.getSQLState(); while ((e = e.getNextException()) != null) curr += "\n\n" + exceptionToString(e) + "\nstate:" + e.getSQLState(); return curr; } }
SQLUtils { public static String toString(SQLException e) { String curr = exceptionToString(e) + "\nstate:" + e.getSQLState(); while ((e = e.getNextException()) != null) curr += "\n\n" + exceptionToString(e) + "\nstate:" + e.getSQLState(); return curr; }  }
SQLUtils { public static String toString(SQLException e) { String curr = exceptionToString(e) + "\nstate:" + e.getSQLState(); while ((e = e.getNextException()) != null) curr += "\n\n" + exceptionToString(e) + "\nstate:" + e.getSQLState(); return curr; }  static void loadClassForName(@NotNull final String className); static String processNullTerminatedString(final String value); static String getIPv4OrIPv6WithSquareBracketsHost(String dbServer); static String exceptionToString(Throwable e); static String toString(SQLException e); @NotNull static String computeSessionId(@NotNull final String aString); static String processDumpException(SQLException sqlException); static String processLoadException(SQLException e); static List<String> readFromFile(String fileName); @NotNull static List<String> getRowsFromGlobalSessionMap(@NotNull final GlobalSessionObject<Map<String, Object>> globalSessionObject, @NotNull final String aKey); @NotNull static String getStrColumns(@NotNull final GlobalSessionObject<Map<String, Object>> globalSessionObject, @NotNull final String strKeyCol); }
SQLUtils { public static String toString(SQLException e) { String curr = exceptionToString(e) + "\nstate:" + e.getSQLState(); while ((e = e.getNextException()) != null) curr += "\n\n" + exceptionToString(e) + "\nstate:" + e.getSQLState(); return curr; }  static void loadClassForName(@NotNull final String className); static String processNullTerminatedString(final String value); static String getIPv4OrIPv6WithSquareBracketsHost(String dbServer); static String exceptionToString(Throwable e); static String toString(SQLException e); @NotNull static String computeSessionId(@NotNull final String aString); static String processDumpException(SQLException sqlException); static String processLoadException(SQLException e); static List<String> readFromFile(String fileName); @NotNull static List<String> getRowsFromGlobalSessionMap(@NotNull final GlobalSessionObject<Map<String, Object>> globalSessionObject, @NotNull final String aKey); @NotNull static String getStrColumns(@NotNull final GlobalSessionObject<Map<String, Object>> globalSessionObject, @NotNull final String strKeyCol);  }