private static void printTrace(StackTraceElement[] trace, PrintWriter writer) {
		for (StackTraceElement element : trace) {
			writer.append("\tat ").append(element.toString()).append('\n');
		}
	}
Creates a new {@link TestReportingException} using an exception that was generated on 
the Swing thread.

@param message an optional custom message that will be printed first in the stack trace
@param t the original exception
@return the new {@link TestReportingException}
Ghidra/Framework/Generic/src/main/java/generic/test/TestReportingException.java