try { ... ... } catch (Exception e) { //e.printStackTrace(); StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); e.printStackTrace(pw); String strStackTrace = sw.toString(); }
时间: 2024-10-16 07:49:45
try { ... ... } catch (Exception e) { //e.printStackTrace(); StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); e.printStackTrace(pw); String strStackTrace = sw.toString(); }