How to handle error states with LiveData? : <p>The new <a href="https://developer.android.com/topic/libraries/architecture/livedata.html" rel="noreferrer"><code>LiveData</code></a> can be used as a replacement for RxJava's observables in some scenarios. However, unlike <code>Observable</code>, <code>LiveData</code> has no callback for errors.</p>

<p>My question is: How should I handle errors in <code>LiveData</code>, e.g. when it's backed by some network resource that can fail to be retrieved due to an <code>IOException</code>?</p>
