List of usage examples for org.springframework.web.server ServerWebInputException ServerWebInputException
public ServerWebInputException(String reason)
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)); }