public class MethodArgumentNotValidException extends 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.
|
String |
getMessage() |
MethodParameter |
getParameter()
Return the method parameter that failed validation.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MethodArgumentNotValidException(MethodParameter parameter, BindingResult bindingResult)
MethodArgumentNotValidException.parameter - the parameter that failed validationbindingResult - the results of the validationpublic MethodParameter getParameter()
public BindingResult getBindingResult()
public String getMessage()
getMessage in class Throwable