e.printStackTrace();
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
println ">>>>>"
println sw.toString()
println "<<<<<"
sw.toString()
就是具体错误信息了
e.printStackTrace();
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
println ">>>>>"
println sw.toString()
println "<<<<<"
sw.toString()
就是具体错误信息了