Top Description Fields Constructors Methods
org.springframework.messaging.handler.invocation

public Class MethodArgumentResolutionException

extends MessagingException
Class Inheritance
Known Direct Subclasses
org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException, org.springframework.messaging.handler.annotation.support.MethodArgumentTypeMismatchException
Annotations
@SuppressWarnings:serial
Imports
org.springframework.core.MethodParameter, org.springframework.lang.Nullable, org.springframework.messaging.Message, .MessagingException

Common exception resulting from the invocation of org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver.
Author
Juergen Hoeller
Since
4.3.6
See Also
HandlerMethodArgumentResolver

Field Summary

Modifier and TypeField and Description
private final MethodParameter

Constructor Summary

AccessConstructor and Description
public
MethodArgumentResolutionException(Message<?> message, MethodParameter parameter)

Create a new instance providing the invalid MethodParameter.

public
MethodArgumentResolutionException(Message<?> message, MethodParameter parameter, String description)

Create a new instance providing the invalid MethodParameter and a prepared description.

public
MethodArgumentResolutionException(Message<?> message, MethodParameter parameter, String description, Throwable cause)

Create a new instance providing the invalid MethodParameter, prepared description, and a cause.

Method Summary

Modifier and TypeMethod and Description
public final MethodParameter
getMethodParameter()

Return the MethodParameter that was rejected.

private static String
Inherited from org.springframework.messaging.MessagingException:
getFailedMessagetoString

Field Detail

parameterback to summary
private final MethodParameter parameter

Constructor Detail

MethodArgumentResolutionExceptionback to summary
public MethodArgumentResolutionException(Message<?> message, MethodParameter parameter)

Create a new instance providing the invalid MethodParameter.

MethodArgumentResolutionExceptionback to summary
public MethodArgumentResolutionException(Message<?> message, MethodParameter parameter, String description)

Create a new instance providing the invalid MethodParameter and a prepared description.

MethodArgumentResolutionExceptionback to summary
public MethodArgumentResolutionException(Message<?> message, MethodParameter parameter, String description, Throwable cause)

Create a new instance providing the invalid MethodParameter, prepared description, and a cause.

Method Detail

getMethodParameterback to summary
public final MethodParameter getMethodParameter()

Return the MethodParameter that was rejected.

getMethodParameterMessageback to summary
private static String getMethodParameterMessage(MethodParameter parameter)