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
ConstructorsConstructorDescriptionMethodArgumentResolutionException(Message<?> message, org.springframework.core.MethodParameter parameter) Create a new instance providing the invalidMethodParameter.MethodArgumentResolutionException(Message<?> message, org.springframework.core.MethodParameter parameter, String description) Create a new instance providing the invalidMethodParameterand a prepared description.MethodArgumentResolutionException(Message<?> message, org.springframework.core.MethodParameter parameter, String description, @Nullable Throwable cause) Create a new instance providing the invalidMethodParameter, prepared description, and a cause. -
Method Summary
Modifier and TypeMethodDescriptionfinal org.springframework.core.MethodParameterReturn the MethodParameter that was rejected.Methods inherited from class MessagingException
getFailedMessage, toStringMethods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
MethodArgumentResolutionException
public MethodArgumentResolutionException(Message<?> message, org.springframework.core.MethodParameter parameter) Create a new instance providing the invalidMethodParameter. -
MethodArgumentResolutionException
-
MethodArgumentResolutionException
-
-
Method Details
-
getMethodParameter
public final org.springframework.core.MethodParameter getMethodParameter()Return the MethodParameter that was rejected.
-