buguge - Keep it simple,stupid

知识就是力量,但更重要的,是运用知识的能力why buguge?

导航

2017年12月28日 #

有关于异常捕获点滴,plus我也揭揭apache-common的短

摘要: 揭短ExceptionUtils:有些异常并没有root cause的,此时,调用ExceptionUtils的getRootCause(final Throwable throwable)返回值是null,而你调用其getRootCauseMessage(final Throwable th)时,反而有返回值。 查看getRootCauseMessage的代码实现,发现它做了二元判断,如果root cause是null,它就去取th本身的message。 阅读全文

posted @ 2017-12-28 20:09 buguge 阅读(852) 评论(0) 推荐(0) 编辑