title: RxJS - Catch and carry on
body: <p>I'm struggling to handle errors with Rx in the manner I expected.</p>
  
  <p>When I have an Observable (for example, from a click stream) and an exception occurs I want to catch it but carry on. All the solutions I have tried catch the error then end the Observable. Is there a way to catch and carry on?</p>
  
  <p>As an example the Observable below will emit "1", then "Error", but never  "3".</p>
  
  <pre><code>var range = Rx.Observable.range(1,3)
      .map(function(i){
        if(i === 2){
          throw "Error";
        } else {
          return i;
        }
      })
      .catch(function(e){
        return Rx.Observable.return(e)
      });
  
  range.subscribe(function(i){
    console.log(i)
  });
  </code></pre>