title: Manually throw error ionic 2
body: <p>I am communicating with a webservice and the return can be negative or porisitvo and will fall into the success of the call, but if the return is negative I need to manually throw an exception</p>
  
  <pre><code> .map(res =&gt; res.json())
    .subscribe(res =&gt; {
      let returno = JSON.parse(res.d);  
      if (returno.status == 'success') {
        this._loggedIn(returno);
      } else {
        throw returno;
      }
    }, err =&gt; {
      console.error('ERROR', err);
    });
  </code></pre>