List of utility methods to do Dump Exception
void | dumpException(String fileName, Throwable t) Method dumpException. dumpException(fileName, t, false); |
String | dumpException(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(); |
void | dumpException(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) { |