Example usage for org.springframework.web.server ServerWebInputException ServerWebInputException

List of usage examples for org.springframework.web.server ServerWebInputException ServerWebInputException

Introduction

In this page you can find the example usage for org.springframework.web.server ServerWebInputException ServerWebInputException.

Prototype

public ServerWebInputException(String reason, @Nullable MethodParameter parameter, @Nullable Throwable cause) 

Source Link

Document

Constructor for a 400 error with a root cause.

Usage

From source file:org.springframework.cloud.function.web.RequestProcessor.java

private Throwable handleReadError(MethodParameter parameter, Throwable ex) {
    return (ex instanceof DecodingException
            ? new ServerWebInputException("Failed to read HTTP message", parameter, ex)
            : ex);/*from   www  .j a v  a  2  s .  c o m*/
}