Skip to content

Unswallow subscribe errors #3

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

Merged
merged 3 commits into from
Feb 22, 2017
Merged

Unswallow subscribe errors #3

merged 3 commits into from
Feb 22, 2017

Conversation

jhansche
Copy link
Contributor

The subscribe() method ignores any errors thrown while the Task is executing. This adds a unit test and dispatches the thrown errors to onError()

Joe Hansche added 2 commits November 14, 2016 13:36
If the query can't be encoded (or any other checked or unchecked Exception
occurs), the async SubscribeClientOperation will swallow the exception,
leaving no way (even a log message) to see why it failed.

This creates a new LiveQueryException subclass (UnknownException) to
represent an unexpected RuntimeException that can then be handled by the
HandleErrorCallback#onError() callback.
@jhansche
Copy link
Contributor Author

jhansche commented Jan 5, 2017

Bump

@mmimeault mmimeault merged commit c0995a7 into parse-community:tasks/initial-project Feb 22, 2017
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

Successfully merging this pull request may close these issues.

2 participants