@Valid style validation, or perhaps because it is required.
| Modifier and Type | Field and Description |
|---|---|
| private final BindingResult |
| Access | Constructor and Description |
|---|---|
| public | MethodArgumentNotValidException(Message<?> message, MethodParameter parameter)
Create a new instance with the invalid |
| public | MethodArgumentNotValidException(Message<?> message, MethodParameter parameter, BindingResult bindingResult)
Create a new instance with the invalid |
| Modifier and Type | Method and Description |
|---|---|
| public final BindingResult | |
| private static String |
| bindingResult | back to summary |
|---|---|
| private final BindingResult bindingResult
| |
| MethodArgumentNotValidException | back to summary |
|---|---|
| public MethodArgumentNotValidException(Message<?> message, MethodParameter parameter) Create a new instance with the invalid | |
| MethodArgumentNotValidException | back to summary |
|---|---|
| public MethodArgumentNotValidException(Message<?> message, MethodParameter parameter, BindingResult bindingResult) Create a new instance with the invalid | |
| getBindingResult | back to summary |
|---|---|
| public final BindingResult getBindingResult() Return the BindingResult if the failure is validation-related,
or
| |
| getValidationErrorMessage | back to summary |
|---|---|
| private static String getValidationErrorMessage(BindingResult bindingResult) | |