标签:
StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); e.printStackTrace(pw); String msg=sw.toString();
打印Exception信息
原文地址:http://www.cnblogs.com/feelgood/p/5888382.html