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) 

Source Link

Document

Constructor with an explanation only.

Usage

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

private ServerWebInputException handleMissingBody(MethodParameter param) {
    return new ServerWebInputException("Request body is missing: " + param.getExecutable().toGenericString());
}

From source file:org.springframework.web.reactive.socket.server.support.HandshakeWebSocketService.java

private Mono<Void> handleBadRequest(String reason) {
    if (logger.isDebugEnabled()) {
        logger.debug(reason);/*from  www  .  j  a  va  2  s . c  o m*/
    }
    return Mono.error(new ServerWebInputException(reason));
}