Skip to content
#

rpc-client

Here are 209 public repositories matching this topic...

ikhoon
ikhoon commented Jun 3, 2022

A failed HttpResponse can be converted into a normal HttpResponse using HttpResponse.recover(...).
For example:

HttpResponse failed = HttpResponse.ofFailure(new IllegalArgumentException("..."));
failed.recover(cause -> {
   if (cause instanceof IllegalArgumentException) {
       return HttpResponse.of(HttpStatus.BAD_REQUEST);
   }

   if (cause instanceof IllegalStateExcepti

Improve this page

Add a description, image, and links to the rpc-client topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the rpc-client topic, visit your repo's landing page and select "manage topics."

Learn more