public class ExceptionTool {
public static String getStackTrace(Throwable aThrowable) {
Writer result = new StringWriter();
PrintWriter printWriter = new PrintWriter(result);
aThrowable.printStackTrace(printWriter);
return result.toString();
}
}
ExceptionTool异常处理工具类
最新推荐文章于 2023-06-29 11:45:30 发布