public class MethodArgumentNotValidException
extends org.springframework.validation.BindException
@Valid
fails.
Extends BindException
as of 5.3.Constructor and Description |
---|
MethodArgumentNotValidException(org.springframework.core.MethodParameter parameter,
org.springframework.validation.BindingResult bindingResult)
Constructor for
MethodArgumentNotValidException . |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
org.springframework.core.MethodParameter |
getParameter()
Return the method parameter that failed validation.
|
addAllErrors, addError, equals, findEditor, getAllErrors, getBindingResult, getErrorCount, getFieldError, getFieldError, getFieldErrorCount, getFieldErrorCount, getFieldErrors, getFieldErrors, getFieldType, getFieldValue, getGlobalError, getGlobalErrorCount, getGlobalErrors, getModel, getNestedPath, getObjectName, getPropertyEditorRegistry, getRawFieldValue, getSuppressedFields, getTarget, hasErrors, hasFieldErrors, hasFieldErrors, hasGlobalErrors, hashCode, popNestedPath, pushNestedPath, recordFieldValue, recordSuppressedField, reject, reject, reject, rejectValue, rejectValue, rejectValue, resolveMessageCodes, resolveMessageCodes, setNestedPath
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MethodArgumentNotValidException(org.springframework.core.MethodParameter parameter, org.springframework.validation.BindingResult bindingResult)
MethodArgumentNotValidException
.parameter
- the parameter that failed validationbindingResult
- the results of the validationpublic final org.springframework.core.MethodParameter getParameter()
public String getMessage()
getMessage
in class org.springframework.validation.BindException