Skip to content

Throw UncheckedIOException instead of generic RuntimeException #339

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 2 commits into from
Mar 13, 2019

Conversation

islandsvinur
Copy link
Contributor

In issue #337 we discussed rethrowing the IOException from the API border, but since many methods nowadays don't throws IOException it would be a huge breaking change.

I therefore decided to only change the exception type from RuntimeException to UncheckedIOException to be able to distinguish between them in API consuming business logic. For consumers already catching RuntimeException to handle the wrapped IOException, nothing will change.

@timols timols merged commit 9a9e527 into timols:master Mar 13, 2019
@islandsvinur islandsvinur deleted the 337-rethrow-ioexception branch March 25, 2019 07:28
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