📅  最后修改于: 2022-03-11 14:52:32.713000             🧑  作者: Mango
代码示例1
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
String exceptionAsString = sw.toString();