ExceptionHandlerExceptionResolver warns when re-throwing the exception cause #23233
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
spring-framework/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java
Line 412 in 3d913b8
If an
@ExceptionHandler
method matches and rethrows a cause of the root exception, it will always log this warning. Instead, the warning should only be logged if the exception differs from the one bound to the ExceptionHandler method's parameter.Instead, this code should do something like this:
I'm testing on Spring 4.3.24, but the code appears to be the same.
The text was updated successfully, but these errors were encountered: