
com.github.shoothzj.javatool.util.ExceptionUtil Maven / Gradle / Ivy
package com.github.shoothzj.javatool.util;
public class ExceptionUtil {
public static String getException(Exception e) {
StringBuilder builder = new StringBuilder();
StackTraceElement[] trace = e.getStackTrace();
for (StackTraceElement traceElement : trace) {
builder.append("\tat ").append(traceElement).append("\n");
}
return builder.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy