|
|
|
@ -25,12 +25,11 @@ import org.springframework.http.ProblemDetail; |
|
|
|
import org.springframework.web.ErrorResponse; |
|
|
|
import org.springframework.web.ErrorResponse; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Fatal binding exception, thrown when we want to treat binding exceptions |
|
|
|
* Fatal binding exception, thrown when we want to treat binding exceptions as |
|
|
|
* as unrecoverable. |
|
|
|
* unrecoverable. |
|
|
|
* |
|
|
|
* |
|
|
|
* <p>Extends ServletException for convenient throwing in any Servlet resource |
|
|
|
* <p>Extends {@link ServletException} for convenient throwing in any Servlet |
|
|
|
* (such as a Filter), and NestedServletException for proper root cause handling |
|
|
|
* resource (such as a Filter). |
|
|
|
* (as the plain ServletException doesn't expose its root cause at all). |
|
|
|
|
|
|
|
* |
|
|
|
* |
|
|
|
* @author Rod Johnson |
|
|
|
* @author Rod Johnson |
|
|
|
* @author Juergen Hoeller |
|
|
|
* @author Juergen Hoeller |
|
|
|
@ -95,6 +94,7 @@ public class ServletRequestBindingException extends ServletException implements |
|
|
|
this.messageDetailArguments = messageDetailArguments; |
|
|
|
this.messageDetailArguments = messageDetailArguments; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String initMessageDetailCode(@Nullable String messageDetailCode) { |
|
|
|
private String initMessageDetailCode(@Nullable String messageDetailCode) { |
|
|
|
return (messageDetailCode != null ? |
|
|
|
return (messageDetailCode != null ? |
|
|
|
messageDetailCode : ErrorResponse.getDefaultDetailMessageCode(getClass(), null)); |
|
|
|
messageDetailCode : ErrorResponse.getDefaultDetailMessageCode(getClass(), null)); |
|
|
|
|