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