All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.unit.nva.testutils.ExceptionUtils Maven / Gradle / Ivy

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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy