Closed lenguyenthanh closed 8 years ago
Basically my advice is to turn expected exceptions into values in the stream and only allow unexpected exceptions to crash the app.
You can find it in the sample app btw: AuthService emits either value or error as value.
Hey, my only concern for this beautiful idea is handling
runtime exception
. For example, in the real world,AuthService
has a very high chance to got a runtime exception and now it is not handler. What is your best practice for this?Thanks