
org.snapscript.studio.agent.task.ExceptionBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap-all Show documentation
Show all versions of snap-all Show documentation
Dynamic scripting for the JVM
The newest version!
package org.snapscript.studio.agent.task;
import java.io.PrintWriter;
import java.io.StringWriter;
public class ExceptionBuilder {
public static String build(Throwable cause) {
StringWriter buffer = new StringWriter();
PrintWriter writer = new PrintWriter(buffer);
cause.printStackTrace(writer);
writer.flush();
writer.close();
return buffer.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy