提交 f22a4a4e 编写于 作者: J Juergen Hoeller

No warn logging for propagated original exception

Issue: SPR-14907
(cherry picked from commit 96bfc14d)
上级 b53ee136
......@@ -382,9 +382,12 @@ public class ExceptionHandlerExceptionResolver extends AbstractHandlerMethodExce
}
}
catch (Throwable invocationEx) {
if (logger.isWarnEnabled()) {
// Any other than the original exception is unintended here,
// probably an accident (e.g. failed assertion or the like).
if (invocationEx != exception && logger.isWarnEnabled()) {
logger.warn("Failed to invoke @ExceptionHandler method: " + exceptionHandlerMethod, invocationEx);
}
// Continue with default processing of the original exception...
return null;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册