spring reactive web client throw exception test

Solutions on MaxInterview for spring reactive web client throw exception test by the best coders in the world

showing results for - "spring reactive web client throw exception test"
Maite
17 Aug 2016
1Mono<MyCustomResponse> result = webClient.post()
2            .header(HttpHeaders.CONTENT_TYPE, "application/json")
3            .body(BodyInserters.fromObject(request))
4            .retrieve()
5            .subscribe(response -> log.info(response),
6                       throwable -> throw new CustomException(throwable.getMessage()));
7