public class MethodArgumentNotValidException
extends java.lang.Exception
@Valid
fails.Constructor and Description |
---|
MethodArgumentNotValidException(MethodParameter parameter,
BindingResult bindingResult)
Constructor for
MethodArgumentNotValidException . |
Modifier and Type | Method and Description |
---|---|
BindingResult |
getBindingResult()
Return the results of the failed validation.
|
java.lang.String |
getMessage() |
MethodParameter |
getParameter()
Return the method parameter that failed validation.
|
public MethodArgumentNotValidException(MethodParameter parameter, BindingResult bindingResult)
MethodArgumentNotValidException
.parameter
- the parameter that failed validationbindingResult
- the results of the validationpublic MethodParameter getParameter()
public BindingResult getBindingResult()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable