Skip to content

Commit 8a37faf

Browse files
committed
BindException declared but not handled by ExceptionHandler.
Closes gh-33952 Signed-off-by: Mengqi Xu <[email protected]>
1 parent 396f04a commit 8a37faf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java

-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.springframework.http.ResponseEntity;
3434
import org.springframework.http.converter.HttpMessageNotReadableException;
3535
import org.springframework.http.converter.HttpMessageNotWritableException;
36-
import org.springframework.validation.BindException;
3736
import org.springframework.validation.method.MethodValidationException;
3837
import org.springframework.web.ErrorResponse;
3938
import org.springframework.web.ErrorResponseException;
@@ -134,7 +133,6 @@ public void setMessageSource(MessageSource messageSource) {
134133
HttpMessageNotReadableException.class,
135134
HttpMessageNotWritableException.class,
136135
MethodValidationException.class,
137-
BindException.class,
138136
AsyncRequestNotUsableException.class
139137
})
140138
public final @Nullable ResponseEntity<Object> handleException(Exception ex, WebRequest request) throws Exception {

0 commit comments

Comments
 (0)