com.blazemeter.taurus.utils.Utils Maven / Gradle / Ivy
package com.blazemeter.taurus.utils;
import java.io.PrintWriter;
import java.io.StringWriter;
public class Utils {
public static String getStackTrace(final Throwable throwable) {
final StringWriter sw = new StringWriter();
final PrintWriter pw = new PrintWriter(sw, true);
throwable.printStackTrace(pw);
return sw.getBuffer().toString();
}
}