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

Remove exception handling from extractArchive #2

Merged
merged 1 commit into from Apr 26, 2018
Merged

Remove exception handling from extractArchive #2

merged 1 commit into from Apr 26, 2018

Conversation

alecharp
Copy link
Contributor

@alecharp alecharp commented Mar 3, 2015

As the catches didn't permit to handle correctly any of the exceptions
thrown during the process of extraction, it is better to throw them to
the caller. At this level, it is not possible to know the handling
strategy to use and this code should not handle them at all.

As the catches didn't permit to handle correctly any of the exceptions
thrown during the process of extraction, it is better to throw them to
the caller. At this level, it is not possible to know the handling
strategy to use and this code should not handle them at all.
albertus82 added a commit to albertus82/junrar that referenced this pull request Jan 28, 2016
junrar#2

As the catches didn't permit to handle correctly any of the exceptions
thrown during the process of extraction, it is better to throw them to
the caller. At this level, it is not possible to know the handling
strategy to use and this code should not handle them at all.

alecharp
@qw52655265
Copy link

qw52655265 commented Aug 19, 2016

I use a zip file(aa.zip) rename to rar file(aa.rar), and then I use[Archive a = new Archive(new File("aa.rar"));],
it will throw a Nullpoint ExcePtion,and the try/catch block can not catch the Exception.How can I catch this NullPoint Exception?

@alecharp
Copy link
Contributor Author

try {} catch (NullPointerException e) {} doesn't work?

@beothorn beothorn merged commit ba780c8 into junrar:master Apr 26, 2018
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.

None yet

3 participants