Example usage for org.springframework.messaging.handler.invocation MethodArgumentResolutionException MethodArgumentResolutionException

List of usage examples for org.springframework.messaging.handler.invocation MethodArgumentResolutionException MethodArgumentResolutionException

Introduction

In this page you can find the example usage for org.springframework.messaging.handler.invocation MethodArgumentResolutionException MethodArgumentResolutionException.

Prototype

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

Source Link

Document

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

Usage

From source file:org.springframework.messaging.handler.annotation.reactive.PayloadMethodArgumentResolver.java

private Throwable handleReadError(MethodParameter parameter, Message<?> message, Throwable ex) {
    return ex instanceof DecodingException
            ? new MethodArgumentResolutionException(message, parameter, "Failed to read HTTP message", ex)
            : ex;//from w w w.j  a  va 2s  .c o  m
}