title: Resubscribing an observable if timeout exception occurs
body: <p>i'm using retrofit to return an observable as a result of REST API call to server. Its very usual that a request timeout exception occurs and observable stops executing. How to resubscribe of retry if exception is of a specific type</p>
  
  <pre><code>myObservable
      .subscribe(new Subscriber&lt;Something&gt; sub(){
          @override
          void onNext(Something something){
              //do something with something
          }
                      @override
          void onError(Throwable e){
              //retry and resend call to server if e is request timeout exception
          }
  </code></pre>