Class 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
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractMethodArgumentResolutionException
public class MethodArgumentResolutionException extends MessagingException
Common exception resulting from the invocation ofHandlerMethodArgumentResolver
.- Since:
- 4.3.6
- Author:
- Juergen Hoeller
- See Also:
HandlerMethodArgumentResolver
, Serialized Form
Constructor Summary
Constructors Constructor Description 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.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodParameter
getMethodParameter()
Return the MethodParameter that was rejected.Methods inherited from class org.springframework.messaging.MessagingException
getFailedMessage, toString
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Constructor Detail
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.
Method Detail
getMethodParameter
public final MethodParameter getMethodParameter()
Return the MethodParameter that was rejected.