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

Catch more specific Exception in DownloadUtils #435

Closed
skaldarnar opened this issue Jun 18, 2019 · 0 comments

Comments

2 participants
@skaldarnar
Copy link
Member

commented Jun 18, 2019

Follow-up task for #434

Catch more specific execptions in DownloadUtils.java.

Please try to catch the most specific type of exception you can, e.g., IOException is better than just Exception. You could also use multiple catch (…) statements with the same try.

For instance, a NullPointerException would also be caught by this, although this is (hopefully) not intended here…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.