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 Summary
ConstructorDescriptionMethodArgumentResolutionException
(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.MethodArgumentResolutionException
(Message<?> message, MethodParameter parameter, String description, Throwable cause) Create a new instance providing the invalidMethodParameter
, prepared description, and a cause. -
Method Summary
Modifier and TypeMethodDescriptionfinal MethodParameter
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 Details
-
MethodArgumentResolutionException
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. -
MethodArgumentResolutionException
public MethodArgumentResolutionException(Message<?> message, MethodParameter parameter, String description, @Nullable Throwable cause) Create a new instance providing the invalidMethodParameter
, prepared description, and a cause.
-
-
Method Details
-
getMethodParameter
Return the MethodParameter that was rejected.
-