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
// special handling for certain Throwable/Error/Exception types
6842
+
Exceptions.throwIfFatal(e);
6843
+
// if an unhandled error occurs executing the onSubscribe we will propagate it
6844
+
try {
6845
+
subscriber.onError(hook.onSubscribeError(e));
6846
+
} catch (OnErrorNotImplementedExceptione2) {
6847
+
// special handling when onError is not implemented ... we just rethrow
6848
+
throwe2;
6849
+
} catch (Throwablee2) {
6850
+
// if this happens it means the onError itself failed (perhaps an invalid function implementation)
6851
+
// so we are unable to propagate the error correctly and will just throw
6852
+
RuntimeExceptionr = newRuntimeException("Error occurred attempting to subscribe [" + e.getMessage() + "] and then again while trying to pass to onError.", e2);
6853
+
// TODO could the hook be the cause of the error in the on error handling.
6854
+
hook.onSubscribeError(r);
6855
+
// TODO why aren't we throwing the hook's return value.
0 commit comments