package com.framsticks.util.lang; import java.io.PrintWriter; import java.io.StringWriter; /** * Author: Piotr Ĺšniegowski */ public class Exceptions { public static String printStackTrace(Throwable throwable) { StringWriter w = new StringWriter(); throwable.printStackTrace(new PrintWriter(w)); return w.getBuffer().toString(); } }