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

Wrapping all curator exceptions in RuntimeExceptions. #671

Merged
merged 3 commits into from
Sep 19, 2013

Conversation

revans2
Copy link
Contributor

@revans2 revans2 commented Sep 3, 2013

Recently we ran into a situation where an InterruptedException was being thrown from IOutputCollector.reportError, even though InterruptedException is not a RuntimeException. Many of the Curator APIs actually declare that any Exception can be thrown. To avoid non-runtime exceptions being thrown by a java API that does not declare it, this patch wraps any Exception thrown by the curator API in a RuntimeException.

@nathanmarz
Copy link
Owner

Can we change this to only wrap the exception in a RuntimeException if it's not already a RuntimeException?

@revans2
Copy link
Contributor Author

revans2 commented Sep 5, 2013

Done.

nathanmarz added a commit that referenced this pull request Sep 19, 2013
Wrapping all curator exceptions in RuntimeExceptions.
@nathanmarz nathanmarz merged commit 97a454c into nathanmarz:master Sep 19, 2013
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