public class MethodArgumentNotValidException extends BindException
@Valid
アノテーションが付けられた引数の検証が失敗した場合にスローされる例外。5.3 の時点で BindException
を拡張します。MODEL_KEY_PREFIX
NESTED_PATH_SEPARATOR
コンストラクターと説明 |
---|
MethodArgumentNotValidException(MethodParameter parameter, BindingResult bindingResult) MethodArgumentNotValidException のコンストラクター。 |
修飾子と型 | メソッドと説明 |
---|---|
StringSE | getMessage() このオブジェクトに保持されているエラーに関する診断情報を返します。 |
MethodParameter | getParameter() 検証に失敗したメソッドパラメーターを返します。 |
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
addSuppressedSE, fillInStackTraceSE, getCauseSE, getLocalizedMessageSE, getStackTraceSE, getSuppressedSE, initCauseSE, printStackTraceSE, printStackTraceSE, printStackTraceSE, setStackTraceSE, toStringSE
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public MethodArgumentNotValidException(MethodParameter parameter, BindingResult bindingResult)
MethodArgumentNotValidException
のコンストラクター。parameter
- 検証に失敗したパラメーター bindingResult
- 検証の結果 public final MethodParameter getParameter()
public StringSE getMessage()
BindException
BindException
の getMessage