1 package net.jaekl.cfb.util;
3 // Copyright (C) 2015 Christian Jaekl
5 import java.io.PrintWriter;
6 import java.io.StringWriter;
9 public static String stringify(Throwable thr) {
10 StringWriter sw = new StringWriter();
11 PrintWriter pw = new PrintWriter(sw);
12 thr.printStackTrace(pw);