Skip to content

gh-275: Propagate exceptions as a RuntimeException instead of java.lang.Error #281

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 1 commit into from
Jan 5, 2018
Merged

Conversation

mjpitz
Copy link
Contributor

@mjpitz mjpitz commented Jan 5, 2018

This should make it so that consumers can catch an Exception instead of any Error type.

@timols
Copy link
Owner

timols commented Jan 5, 2018

Easy. I thought you were going to create a new exception class. This works too :)

@timols timols merged commit 1b3dae4 into timols:master Jan 5, 2018
@islandsvinur
Copy link
Contributor

Got hit by an Error today (was still on 4.0.0), upgraded to 4.1.0, then got hit again by a generic RuntimeException. Glad it no longer kills my thread, but I would prefer the API to throw IOException as declared. Maybe wrap it here in UncheckedIOException, then unwrap and rethrow?

@timols I'll create an issue

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.

3 participants