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:
- MethodArgumentNotValidException, MethodArgumentTypeMismatchException
Common exception resulting from the invocation of
HandlerMethodArgumentResolver.- Since:
- 4.3.6
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMethodArgumentResolutionException(Message<?> message, MethodParameter parameter) Create a new instance providing the invalidMethodParameter.MethodArgumentResolutionException(Message<?> message, MethodParameter parameter, String description) Create a new instance providing the invalidMethodParameterand a prepared description.MethodArgumentResolutionException(Message<?> message, MethodParameter parameter, String description, @Nullable Throwable cause) Create a new instance providing the invalidMethodParameter, prepared description, and a cause.
- 
Method SummaryModifier and TypeMethodDescriptionfinal MethodParameterReturn the MethodParameter that was rejected.Methods inherited from class MessagingExceptiongetFailedMessage, toStringMethods inherited from class NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
- 
Constructor Details- 
MethodArgumentResolutionExceptionCreate a new instance providing the invalidMethodParameter.
- 
MethodArgumentResolutionExceptionpublic MethodArgumentResolutionException(Message<?> message, MethodParameter parameter, String description) Create a new instance providing the invalidMethodParameterand a prepared description.
- 
MethodArgumentResolutionExceptionpublic MethodArgumentResolutionException(Message<?> message, MethodParameter parameter, String description, @Nullable Throwable cause) Create a new instance providing the invalidMethodParameter, prepared description, and a cause.
 
- 
- 
Method Details- 
getMethodParameterReturn the MethodParameter that was rejected.
 
-