Created
July 1, 2019 07:38
-
-
Save deepakmehra10/7bbdd0e6710433a496e7a8299179614d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.retrieve() | |
.onStatus(HttpStatus::is4xxClientError, response -> | |
Mono.error(new MyCustomException()) | |
) | |
.onStatus(HttpStatus::is5xxServerError, response -> | |
Mono.error(new MyCustomException()) | |
) | |
.bodyToFlux(Post.class); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment