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
s.request(1); // Our Subscriber is unbuffered and modest, it requests one element at a time
95
95
} catch(finalThrowablet) {
96
96
// Subscription.request is not allowed to throw according to rule 3.16
97
-
(newIllegalStateException(s + " violated the Reactive Streams rule 3.16 by throwing an exception from cancel.", t)).printStackTrace(System.err);
97
+
(newIllegalStateException(s + " violated the Reactive Streams rule 3.16 by throwing an exception from request.", t)).printStackTrace(System.err);
98
98
}
99
99
}
100
100
}
@@ -111,7 +111,7 @@ private final void handleOnNext(final T element) {
111
111
subscription.request(1); // Our Subscriber is unbuffered and modest, it requests one element at a time
112
112
} catch(finalThrowablet) {
113
113
// Subscription.request is not allowed to throw according to rule 3.16
114
-
(newIllegalStateException(subscription + " violated the Reactive Streams rule 3.16 by throwing an exception from cancel.", t)).printStackTrace(System.err);
114
+
(newIllegalStateException(subscription + " violated the Reactive Streams rule 3.16 by throwing an exception from request.", t)).printStackTrace(System.err);
Copy file name to clipboardExpand all lines: examples/src/main/java/org/reactivestreams/example/unicast/SyncSubscriber.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ public abstract class SyncSubscriber<T> implements Subscriber<T> {
35
35
s.request(1); // Our Subscriber is unbuffered and modest, it requests one element at a time
36
36
} catch(finalThrowablet) {
37
37
// Subscription.request is not allowed to throw according to rule 3.16
38
-
(newIllegalStateException(s + " violated the Reactive Streams rule 3.16 by throwing an exception from cancel.", t)).printStackTrace(System.err);
38
+
(newIllegalStateException(s + " violated the Reactive Streams rule 3.16 by throwing an exception from request.", t)).printStackTrace(System.err);
39
39
}
40
40
}
41
41
}
@@ -54,7 +54,7 @@ public abstract class SyncSubscriber<T> implements Subscriber<T> {
54
54
subscription.request(1); // Our Subscriber is unbuffered and modest, it requests one element at a time
55
55
} catch (finalThrowablet) {
56
56
// Subscription.request is not allowed to throw according to rule 3.16
57
-
(newIllegalStateException(subscription + " violated the Reactive Streams rule 3.16 by throwing an exception from cancel.", t)).printStackTrace(System.err);
57
+
(newIllegalStateException(subscription + " violated the Reactive Streams rule 3.16 by throwing an exception from request.", t)).printStackTrace(System.err);
0 commit comments