Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw if no onError handler specified #198

Closed
benjchristensen opened this issue Mar 19, 2013 · 3 comments
Closed

Throw if no onError handler specified #198

benjchristensen opened this issue Mar 19, 2013 · 3 comments
Milestone

Comments

@benjchristensen
Copy link
Member

If an onError handler is not provided we should throw an exception if an error occurs even though it will likely show up on some other thread.

@mttkay
Copy link
Contributor

mttkay commented Apr 23, 2013

To back this up, the relevant section from the Rx Design Guildelines says:

"E.g. when calling the Subscribe method that only has an onNext argument, the OnError behavior will be to rethrow the exception on the thread that the message comes out from the observable sequence. The OnCompleted behavior in this case is to do nothing."

(v1.0, section 5.2, p11)

@mttkay
Copy link
Contributor

mttkay commented Jul 7, 2013

Is this closed with the above PR?

@mttkay
Copy link
Contributor

mttkay commented Jul 20, 2013

I noticed this went into 0.9.1 👍

rickbw pushed a commit to rickbw/RxJava that referenced this issue Jan 9, 2014
ReactiveX#198

As per Rx Design Guidelines 5.2:

 "when calling the Subscribe method that only has an onNext argument, the OnError behavior will be
 to rethrow the exception on the thread that the message comes out from the observable sequence.
 The OnCompleted behavior in this case is to do nothing."

A new OnErrorNotImplementedException was created so it is explicit as to where the exception is coming from and why.
jihoonson pushed a commit to jihoonson/RxJava that referenced this issue Mar 6, 2020
Add Maybe and Completable RateLimiter operator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants