com.blazemeter.taurus.testng.Utils Maven / Gradle / Ivy
package com.blazemeter.taurus.testng;
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();
}
}