-
Notifications
You must be signed in to change notification settings - Fork 534
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
Throwing exceptions #292
Comments
I think the spec precise non fatal exception. Sent from my iPhone
|
And input error (NPE). Sent from my iPhone
|
Sounds resolved, reopen if not. Thank you |
The specification says in 1.9:
and in 2.13:
I think this is too restrictive and impossible to implement. Almost any arbitrary java code may through an unchecked exception (out of memory, interrupted, etc.) so even an implementation that catches Throwable may throw in it's handling of the caught exception.
Attempts to rigorously implement 1.9 and 2.13 have resulted in discussions like #271 which are motivated as the calling of cancel is often an insufficient signal for unexpected events.
Instead, I think that the language should be changed so that exceptions MAY be thrown from these methods, but that such exceptions are fatal and are not guaranteed to be passed up or down to the subscriber. I know that is essentially what "legal" means, but there is a slight change of emphasis as it means implementations do not have to obsess about catching OOM etc.
The text was updated successfully, but these errors were encountered: