You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I'm trying to figure out, how errors are handled in RxJava (0.19.1). Basically, I'd expect the fundamental rule to be something like: Any exception thrown within an operator is either handed to the onError handler of subscribe if one is provided, or rethrown if none is provided.
prints error: java.lang.Exception: Bang! as expected,
But:
nested.subscribe(next ⇒ println(next))
prints
a1
a2
a3
b1
and finishes without throwing any exception.
Is this the intended behavior? For me it is quite unfortunate, since bugs in my code can easily slip away unnoticed, but perhaps there is something I don't see.
Thank you, best regards
The text was updated successfully, but these errors were encountered:
Hi all,
I'm trying to figure out, how errors are handled in RxJava (0.19.1). Basically, I'd expect the fundamental rule to be something like: Any exception thrown within an operator is either handed to the onError handler of subscribe if one is provided, or rethrown if none is provided.
This works for the map operator:
throws a
rx.exceptions.OnErrorNotImplementedException: Bang!
as expected.prints
error: java.lang.Exception: Bang!
as expected.For nested observables joined using
flatMap
prints
error: java.lang.Exception: Bang!
as expected,But:
nested.subscribe(next ⇒ println(next))
prints
and finishes without throwing any exception.
Is this the intended behavior? For me it is quite unfortunate, since bugs in my code can easily slip away unnoticed, but perhaps there is something I don't see.
Thank you, best regards
The text was updated successfully, but these errors were encountered: