You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid reference to HandlerMethod class in ServerErrorException
This breaks the package dependency cycle between web.server/web.method and makes ServerErrorException more generally applicable. Includes deprecation of the plain reason constructor variant, in favor of providing a Method or MethodParameter context (which MatrixVariableMethodArgumentResolver does now).
Copy file name to clipboardExpand all lines: spring-webflux/src/main/java/org/springframework/web/reactive/result/method/SyncInvocableHandlerMethod.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ public HandlerResult invokeForHandlerResult(ServerWebExchange exchange,
109
109
Throwableex = processor.getError();
110
110
if (ex != null) {
111
111
throw (exinstanceofServerErrorException ? (ServerErrorException) ex :
112
-
newServerErrorException("Failed to invoke: " + getShortLogMessage(), this, ex));
112
+
newServerErrorException("Failed to invoke: " + getShortLogMessage(), getMethod(), ex));
Copy file name to clipboardExpand all lines: spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/MatrixVariableMethodArgumentResolver.java
0 commit comments