Java Utililty Methods Dump Exception

List of utility methods to do Dump Exception

Description

The list of methods to do Dump Exception are organized into topic(s).

Method

voiddumpException(String fileName, Throwable t)
Method dumpException.
dumpException(fileName, t, false);
StringdumpException(Throwable e)
dump Exception
StringWriter sw = new StringWriter(160);
sw.write(e.getClass().getName());
sw.write(":\n");
e.printStackTrace(new PrintWriter(sw));
return sw.toString();
voiddumpException(Throwable ex)
dump Exception
try {
    FileWriter fw = new FileWriter(EXCEPTION_FILE, true);
    PrintWriter pw = new PrintWriter(fw);
    ex.printStackTrace(pw);
    fw.close();
} catch (Throwable e) {