@Override public void onError(Throwable t) { if (done) { Operators.onErrorDropped(t, ctx); return; } error = t; done = true; drain(); }
void cleanup(S s) { try { state = null; stateConsumer.accept(s); } catch (Throwable e) { Operators.onErrorDropped(e, actual.currentContext()); } }
@Override public void onError(Throwable t) { if (done) { Operators.onErrorDropped(t, this.ctx); return; } done = true; cleanupCallback.accept(collection); actual.onError(t); }
@Override public void onError(Throwable t) { if (done) { Operators.onErrorDropped(t, this.ctx); return; } done = true; actual.onError(t); }
private void safeHookFinally(SignalType type) { try { hookFinally(type); } catch (Throwable finallyFailure) { Operators.onErrorDropped(finallyFailure, currentContext()); } }
@Override public void onError(Throwable t) { if (done) { Operators.onErrorDropped(t, actual.currentContext()); return; } error = t; done = true; trySchedule(null, t, null); }
@Override public void onError(Throwable t) { if (done) { Operators.onErrorDropped(t, this.ctx); return; } done = true; actual.onError(t); Operators.onDiscardMultiple(buffer, this.ctx); }
@Override public void onError(Throwable throwable) { if (resourceProvided) { Operators.onErrorDropped(throwable, actual.currentContext()); return; } //even if no resource provided, actual.onSubscribe has been called //let's immediately fail actual actual.onError(throwable); }
@Override public void onError(Throwable t) { if (done) { Operators.onErrorDropped(t, actual.currentContext()); return; } done = true; actual.onError(t); }
@Override public void onError(Throwable t) { if (Exceptions.addThrowable(ERROR, this, t)) { done = true; drain(); } else { Operators.onErrorDropped(t, this.ctx); } }
@Override public void onError(Throwable t) { if (!done) { done = true; parent.innerError(t); } else { Operators.onErrorDropped(t, parent.currentContext()); } }
@Override public void onError(Throwable t) { if (done) { Operators.onErrorDropped(t, actual.currentContext()); return; } done = true; actual.onError(t); }
@Override public void onError(Throwable t) { if (done) { Operators.onErrorDropped(t, actual.currentContext()); return; } done = true; actual.onError(t); }
void innerError(Throwable e) { if (Exceptions.addThrowable(ERROR, this, e)) { done = true; drain(); } else { discardQueue(queue); Operators.onErrorDropped(e, this.ctx); } }
@Override public void innerCloseError(Throwable ex) { if (Exceptions.addThrowable(ERROR, this, ex)) { drain(); } else { Operators.onErrorDropped(ex, actual.currentContext()); } } }
@Override public void onError(Throwable t) { if (done) { Operators.onErrorDropped(t, actual.currentContext()); return; } done = true; Operators.onDiscard(value, actual.currentContext()); value = null; actual.onError(t); }
@Override public void onError(Throwable t) { if (subscription != Operators.cancelledSubscription()) { SUBSCRIPTION.lazySet(this, Operators.cancelledSubscription()); parent.boundaryError(this, t); } else { Operators.onErrorDropped(t, parent.ctx); } }
@Override public void innerError(Throwable ex) { if (Exceptions.addThrowable(ERROR, this, ex)) { ACTIVE.decrementAndGet(this); drain(); } else { Operators.onErrorDropped(ex, actual.currentContext()); } }
void innerError(MergeSequentialInner<R> inner, Throwable e) { if (Exceptions.addThrowable(ERROR, this, e)) { inner.setDone(); if (errorMode != ErrorMode.END) { s.cancel(); } drain(); } else { Operators.onErrorDropped(e, actual.currentContext()); } }
boolean failOverflow(R v, Subscription toCancel){ Throwable e = Operators.onOperatorError(toCancel, Exceptions.failWithOverflow(Exceptions.BACKPRESSURE_ERROR_QUEUE_FULL), v, actual.currentContext()); if (!Exceptions.addThrowable(ERROR, this, e)) { Operators.onErrorDropped(e, actual.currentContext()); return false; } return true; }