Skip to content

Commit 53b3b93

Browse files
remeiobclozel
authored andcommittedJan 8, 2025
BindException declared but not handled by ExceptionHandler
Closes gh-34214 Signed-off-by: Mengqi Xu <[email protected]>
1 parent 9173e13 commit 53b3b93

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,7 +33,6 @@
3333
import org.springframework.http.converter.HttpMessageNotReadableException;
3434
import org.springframework.http.converter.HttpMessageNotWritableException;
3535
import org.springframework.lang.Nullable;
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;
@@ -136,7 +135,6 @@ protected MessageSource getMessageSource() {
136135
HttpMessageNotReadableException.class,
137136
HttpMessageNotWritableException.class,
138137
MethodValidationException.class,
139-
BindException.class,
140138
AsyncRequestNotUsableException.class
141139
})
142140
@Nullable

0 commit comments

Comments
 (0)
Please sign in to comment.