得到Exception详细信息
//跟踪Exception信息,将其返回
public static String getStackTraceString(Exception e){
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
return sw.toString();
}
//跟踪Exception信息,将其返回
pu