/** * Store crash stacktrace * * @param t * @param e */ public void uncaughtException(Thread t, Throwable e) { final Writer writer = new StringWriter(); final PrintWriter printWriter = new PrintWriter(writer); e.printStackTrace(printWriter); storeIssue(FailureLevel.crash, sTagDefault, writer.toString()); sDefaultHandler.uncaughtException(t, e); }
public void uncaughtException(Thread t, Throwable e) { try { final Date time = new Date(); final String stackTrace = getStackTrace(e); if (stackTrace != null) { if (localPath != null) { writeToFile(stackTrace, String.valueOf(time.getTime()) + ".stacktrace"); } if (url != null) { sendToServer(stackTrace, time); } } } catch (Throwable anyException) { Log.e(TAG, Strings.fromStackTrace(anyException.getStackTrace())); } finally { defaultUEH.uncaughtException(t, e); } }