public class MethodArgumentNotValidException extends AbstractMethodArgumentResolutionException
@Valid style validation, or perhaps because it is required.| Constructor and Description |
|---|
MethodArgumentNotValidException(Message<?> message,
org.springframework.core.MethodParameter parameter)
Create a new instance with the invalid
MethodParameter. |
MethodArgumentNotValidException(Message<?> message,
org.springframework.core.MethodParameter parameter,
org.springframework.validation.BindingResult bindingResult)
Create a new instance with the invalid
MethodParameter and a
BindingResult. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.validation.BindingResult |
getBindingResult()
Return the BindingResult if the failure is validation-related or
null. |
getMethodParameter, getMethodParamMessagegetFailedMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MethodArgumentNotValidException(Message<?> message, org.springframework.core.MethodParameter parameter)
MethodParameter.public MethodArgumentNotValidException(Message<?> message, org.springframework.core.MethodParameter parameter, org.springframework.validation.BindingResult bindingResult)
MethodParameter and a
BindingResult.