类 MethodArgumentTypeMismatchException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.beans.BeansException
- org.springframework.beans.PropertyAccessException
- org.springframework.beans.TypeMismatchException
- org.springframework.web.method.annotation.MethodArgumentTypeMismatchException
- 所有已实现的接口:
Serializable
,ErrorCoded
public class MethodArgumentTypeMismatchException extends TypeMismatchException
A TypeMismatchException raised while resolving a controller method argument. Provides access to the targetMethodParameter
.- 从以下版本开始:
- 4.2
- 作者:
- Rossen Stoyanchev
- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 org.springframework.beans.TypeMismatchException
ERROR_CODE
构造器概要
构造器 构造器 说明 MethodArgumentTypeMismatchException(Object value, Class<?> requiredType, String name, MethodParameter param, Throwable cause)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getName()
Return the name of the method argument.MethodParameter
getParameter()
Return the target method parameter.从类继承的方法 org.springframework.beans.TypeMismatchException
getErrorCode, getRequiredType, getValue
从类继承的方法 org.springframework.beans.PropertyAccessException
getPropertyChangeEvent, getPropertyName
从类继承的方法 org.springframework.beans.BeansException
equals, hashCode
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
MethodArgumentTypeMismatchException
public MethodArgumentTypeMismatchException(Object value, Class<?> requiredType, String name, MethodParameter param, Throwable cause)
方法详细资料
getParameter
public MethodParameter getParameter()
Return the target method parameter.