0

I am starting to developing using rxJava, and I have the following situation:

I have a observable and I want to have one subscriber to handle the error onError, and other subscriber to handle the retryWhen.

The retryWhen swallow the error, how avoid the error swallow?

Guilherme Torres Castro
  • 15,135
  • 7
  • 59
  • 96

1 Answers1

4

You can put doOnError/doOnEach before retryWhen like this:

    o.doOnError(t -> {
      // do something 
    }).retryWhen(o -> {
      // do something
    });
zsxwing
  • 20,270
  • 4
  • 37
  • 59