|
23 | 23 | import io.reactivex.*;
|
24 | 24 | import io.reactivex.Scheduler.Worker;
|
25 | 25 | import io.reactivex.disposables.Disposable;
|
26 |
| -import io.reactivex.exceptions.Exceptions; |
| 26 | +import io.reactivex.exceptions.*; |
27 | 27 | import io.reactivex.internal.disposables.DisposableHelper;
|
28 | 28 | import io.reactivex.internal.fuseable.SimpleQueue;
|
29 | 29 | import io.reactivex.internal.queue.MpscLinkedQueue;
|
@@ -126,7 +126,7 @@ public void onSubscribe(Subscription s) {
|
126 | 126 | } else {
|
127 | 127 | cancelled = true;
|
128 | 128 | s.cancel();
|
129 |
| - a.onError(new IllegalStateException("Could not deliver first window due to lack of requests.")); |
| 129 | + a.onError(new MissingBackpressureException("Could not deliver first window due to lack of requests.")); |
130 | 130 | return;
|
131 | 131 | }
|
132 | 132 |
|
@@ -281,7 +281,7 @@ void drainLoop() {
|
281 | 281 | queue.clear();
|
282 | 282 | s.cancel();
|
283 | 283 | dispose();
|
284 |
| - a.onError(new IllegalStateException("Could not deliver first window due to lack of requests.")); |
| 284 | + a.onError(new MissingBackpressureException("Could not deliver first window due to lack of requests.")); |
285 | 285 | return;
|
286 | 286 | }
|
287 | 287 | } else {
|
@@ -374,7 +374,7 @@ public void onSubscribe(Subscription s) {
|
374 | 374 | } else {
|
375 | 375 | cancelled = true;
|
376 | 376 | s.cancel();
|
377 |
| - a.onError(new IllegalStateException("Could not deliver initial window due to lack of requests.")); |
| 377 | + a.onError(new MissingBackpressureException("Could not deliver initial window due to lack of requests.")); |
378 | 378 | return;
|
379 | 379 | }
|
380 | 380 |
|
@@ -436,7 +436,7 @@ public void onNext(T t) {
|
436 | 436 | window = null;
|
437 | 437 | s.cancel();
|
438 | 438 | dispose();
|
439 |
| - actual.onError(new IllegalStateException("Could not deliver window due to lack of requests")); |
| 439 | + actual.onError(new MissingBackpressureException("Could not deliver window due to lack of requests")); |
440 | 440 | return;
|
441 | 441 | }
|
442 | 442 | } else {
|
@@ -572,7 +572,7 @@ void drainLoop() {
|
572 | 572 | queue.clear();
|
573 | 573 | s.cancel();
|
574 | 574 | dispose();
|
575 |
| - a.onError(new IllegalStateException("Could not deliver first window due to lack of requests.")); |
| 575 | + a.onError(new MissingBackpressureException("Could not deliver first window due to lack of requests.")); |
576 | 576 | return;
|
577 | 577 | }
|
578 | 578 | }
|
@@ -613,7 +613,7 @@ void drainLoop() {
|
613 | 613 | window = null;
|
614 | 614 | s.cancel();
|
615 | 615 | dispose();
|
616 |
| - actual.onError(new IllegalStateException("Could not deliver window due to lack of requests")); |
| 616 | + actual.onError(new MissingBackpressureException("Could not deliver window due to lack of requests")); |
617 | 617 | return;
|
618 | 618 | }
|
619 | 619 | } else {
|
@@ -719,7 +719,7 @@ public void run() {
|
719 | 719 |
|
720 | 720 | } else {
|
721 | 721 | s.cancel();
|
722 |
| - actual.onError(new IllegalStateException("Could not emit the first window due to lack of requests")); |
| 722 | + actual.onError(new MissingBackpressureException("Could not emit the first window due to lack of requests")); |
723 | 723 | }
|
724 | 724 | }
|
725 | 725 |
|
@@ -878,7 +878,7 @@ public void run() {
|
878 | 878 | }
|
879 | 879 | }, timespan, unit);
|
880 | 880 | } else {
|
881 |
| - a.onError(new IllegalStateException("Can't emit window due to lack of requests")); |
| 881 | + a.onError(new MissingBackpressureException("Can't emit window due to lack of requests")); |
882 | 882 | continue;
|
883 | 883 | }
|
884 | 884 | } else {
|
|
0 commit comments