📅  最后修改于: 2022-03-11 14:58:01.727000             🧑  作者: Mango
Exception e = ...
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
String exceptionDetails = sw.toString();