title: RxJava: Conditionally catch error and stop propagation
body: <p>I use Retrofit with RxJava Observables and lambda expressions. I'm new to RxJava and cannot find out how to do the following:</p>
  
  <pre><code>Observable&lt;ResponseBody&gt; res = api.getXyz();
  res.subscribe(response -&gt; {
      // I don't need the response here
  }, error -&gt; {
      // I might be able to handle an error here. If so, it shall not go to the second error handler.
  });
  res.subscribe(response -&gt; {
      // This is where I want to process the response
  }, error -&gt; {
      // This error handler shall only be invoked if the first error handler was not able to handle the error.
  });
  </code></pre>
  
  <p>I looked at the <a href="https://github.com/ReactiveX/RxJava/wiki/Error-Handling-Operators" rel="nofollow">error handling operators</a>, but I don't understand how they can help me with my usecase.</p>