Closed
Description
Hi,
I am trying to make the app fail fast when something is going wrong from the Observer.
I was surprised to see that the Exception was swallowed by RxJava.
Here is a sample I tried :
Observable.error(new Exception()).subscribe(new Observer<Object>() {
@Override
public void onCompleted() {
}
@Override
public void onError(Throwable e) {
throw new IllegalStateException("This should crash the app");
}
@Override
public void onNext(Object o) {
}
});
Do I need do do anything specific to fail from within an Observer ?
Metadata
Metadata
Assignees
Labels
No labels