`
zhangweioak
  • 浏览: 61999 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

ExceptionTool异常处理工具类

 
阅读更多
public class ExceptionTool {
	public static String getStackTrace(Throwable aThrowable) {
		Writer result = new StringWriter();
	    PrintWriter printWriter = new PrintWriter(result);
	    aThrowable.printStackTrace(printWriter);
	    return result.toString();
	}
}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics