From abec289e9f7284c657b8762d0d5fdee6ea89e6da Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Wed, 19 Nov 2025 17:32:19 +0100 Subject: [PATCH] Stop mentioning non-existent NestedServletException NestedServletException has been removed from the framework. --- .../web/bind/ServletRequestBindingException.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/bind/ServletRequestBindingException.java b/spring-web/src/main/java/org/springframework/web/bind/ServletRequestBindingException.java index fb1b59c8534..296caa7118e 100644 --- a/spring-web/src/main/java/org/springframework/web/bind/ServletRequestBindingException.java +++ b/spring-web/src/main/java/org/springframework/web/bind/ServletRequestBindingException.java @@ -25,12 +25,11 @@ import org.springframework.http.ProblemDetail; import org.springframework.web.ErrorResponse; /** - * Fatal binding exception, thrown when we want to treat binding exceptions - * as unrecoverable. + * Fatal binding exception, thrown when we want to treat binding exceptions as + * unrecoverable. * - *
Extends ServletException for convenient throwing in any Servlet resource - * (such as a Filter), and NestedServletException for proper root cause handling - * (as the plain ServletException doesn't expose its root cause at all). + *
Extends {@link ServletException} for convenient throwing in any Servlet + * resource (such as a Filter). * * @author Rod Johnson * @author Juergen Hoeller @@ -95,6 +94,7 @@ public class ServletRequestBindingException extends ServletException implements this.messageDetailArguments = messageDetailArguments; } + private String initMessageDetailCode(@Nullable String messageDetailCode) { return (messageDetailCode != null ? messageDetailCode : ErrorResponse.getDefaultDetailMessageCode(getClass(), null));