类 MethodArgumentResolutionException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.messaging.MessagingException
- org.springframework.messaging.handler.invocation.MethodArgumentResolutionException
- 所有已实现的接口:
Serializable
public class MethodArgumentResolutionException extends MessagingException
Common exception resulting from the invocation ofHandlerMethodArgumentResolver
.- 从以下版本开始:
- 4.3.6
- 作者:
- Juergen Hoeller
- 另请参阅:
HandlerMethodArgumentResolver
, 序列化表格
构造器概要
构造器 构造器 说明 MethodArgumentResolutionException(Message<?> message, MethodParameter parameter)
Create a new instance providing the invalidMethodParameter
.MethodArgumentResolutionException(Message<?> message, MethodParameter parameter, String description)
Create a new instance providing the invalidMethodParameter
and a prepared description.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 MethodParameter
getMethodParameter()
Return the MethodParameter that was rejected.从类继承的方法 org.springframework.messaging.MessagingException
getFailedMessage, toString
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
MethodArgumentResolutionException
public MethodArgumentResolutionException(Message<?> message, MethodParameter parameter)
Create a new instance providing the invalidMethodParameter
.
MethodArgumentResolutionException
public MethodArgumentResolutionException(Message<?> message, MethodParameter parameter, String description)
Create a new instance providing the invalidMethodParameter
and a prepared description.
方法详细资料
getMethodParameter
public final MethodParameter getMethodParameter()
Return the MethodParameter that was rejected.