]> jaekl.net Git - cfb.git/blob - prod/net/jaekl/cfb/util/Util.java
c0e7b1ca4b592ee9c2decc8e168fe3994ba3ec00
[cfb.git] / prod / net / jaekl / cfb / util / Util.java
1 package net.jaekl.cfb.util;
2
3 import java.io.PrintWriter;
4 import java.io.StringWriter;
5
6 public class Util {
7         public static String stringify(Throwable thr) {
8                 StringWriter sw = new StringWriter();
9                 PrintWriter pw = new PrintWriter(sw);
10                 thr.printStackTrace(pw);
11                 return sw.toString();
12         }
13 }