spring-framework / org.springframework.messaging.handler.invocation / MethodArgumentResolutionException

MethodArgumentResolutionException

open class MethodArgumentResolutionException : MessagingException

Common exception resulting from the invocation of org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver.

Author
Juergen Hoeller

Since
4.3.6

See Also
HandlerMethodArgumentResolver

Constructors

<init>

MethodArgumentResolutionException(message: Message<*>, parameter: MethodParameter)

Create a new instance providing the invalid MethodParameter.

MethodArgumentResolutionException(message: Message<*>, parameter: MethodParameter, description: String)

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

Functions

getMethodParameter

fun getMethodParameter(): MethodParameter

Return the MethodParameter that was rejected.

Inheritors

MethodArgumentNotValidException

open class MethodArgumentNotValidException : MethodArgumentResolutionException

Exception to be thrown when a method argument fails validation perhaps as a result of @Valid style validation, or perhaps because it is required.

MethodArgumentTypeMismatchException

open class MethodArgumentTypeMismatchException : MethodArgumentResolutionException

Exception that indicates that a method argument has not the expected type.