public class MethodArgumentNotValidException extends Exception
| 构造器和说明 |
|---|
MethodArgumentNotValidException(org.springframework.core.MethodParameter parameter,
String errorMsg)
Constructor for
MethodArgumentNotValidException. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getErrorMsg()
返回异常信息.
|
String |
getMessage() |
org.springframework.core.MethodParameter |
getParameter()
Return the method parameter that failed validation.
|
public MethodArgumentNotValidException(org.springframework.core.MethodParameter parameter,
String errorMsg)
MethodArgumentNotValidException.parameter - the parameter that failed validationerrorMsg - 异常信息public org.springframework.core.MethodParameter getParameter()
public String getErrorMsg()
public String getMessage()
getMessage 在类中 ThrowableCopyright © 2018 Pivotal Software, Inc.. All rights reserved.