The new LiveData
can be used as a replacement for RxJava's observables in some scenarios. However, unlike Observable
, LiveData
has no callback for errors.
My question is: How should I handle errors in LiveData
, e.g. when it's backed by some network resource that can fail to be retrieved due to an IOException
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…