1313package rx .operators ;
1414
1515import rx .Observable .Operator ;
16- import rx .Observer ;
1716import rx .Producer ;
1817import rx .Subscriber ;
18+ import rx .exceptions .Exceptions ;
1919import rx .plugins .DebugNotification ;
2020import rx .plugins .DebugNotificationListener ;
2121
@@ -43,6 +43,7 @@ public void onStart() {
4343 listener .complete (context );
4444 } catch (Throwable e ) {
4545 listener .error (context , e );
46+ throw Exceptions .propagate (e );
4647 }
4748 }
4849
@@ -55,6 +56,7 @@ public void onCompleted() {
5556 listener .complete (context );
5657 } catch (Throwable e ) {
5758 listener .error (context , e );
59+ throw Exceptions .propagate (e );
5860 }
5961 }
6062
@@ -67,6 +69,7 @@ public void onError(Throwable e) {
6769 listener .complete (context );
6870 } catch (Throwable e2 ) {
6971 listener .error (context , e2 );
72+ throw Exceptions .propagate (e );
7073 }
7174 }
7275
@@ -81,6 +84,7 @@ public void onNext(T t) {
8184 listener .complete (context );
8285 } catch (Throwable e ) {
8386 listener .error (context , e );
87+ throw Exceptions .propagate (e );
8488 }
8589 }
8690
@@ -97,6 +101,7 @@ public void request(long n) {
97101 listener .complete (context );
98102 } catch (Throwable e ) {
99103 listener .error (context , e );
104+ throw Exceptions .propagate (e );
100105 }
101106 }
102107 });
0 commit comments