no.unit.nva.testutils.ExceptionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nvatestutils Show documentation
Show all versions of nvatestutils Show documentation
A commons library for the NVA project
The newest version!
package no.unit.nva.testutils;
import java.io.PrintWriter;
import java.io.StringWriter;
import nva.commons.core.JacocoGenerated;
@JacocoGenerated
public final class ExceptionUtils {
public static String stackTraceToString(Exception e) {
StringWriter stringWriter = new StringWriter();
PrintWriter printWriter = new PrintWriter(stringWriter, true);
e.printStackTrace(printWriter);
return stringWriter.toString();
}
}