问题
java捕获了异常后,如何获取完整的堆栈轨迹(stack trace)
回答
String fullStackTrace = org.apache.commons.lang.exception.ExceptionUtils.getFullStackTrace(e)
Thread.currentThread().getStackTrace();
stackoverflow原址:http://stackoverflow.com/questions/1069066/how-can-i-get-the-current-stack-trace