Forward IOException in ClassFileArchiveEntryHandler::toClassFile

While the exception itself might not be very helpful (Javassist, for example, can throw rather cryptic ones) including at least makes the visible.
This commit is contained in:
Nicolai Parlog 2017-03-04 01:24:22 +01:00 committed by Vlad Mihalcea
parent 55af30eb13
commit 2c4ccbc8af
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class ClassFileArchiveEntryHandler implements ArchiveEntryHandler {
return new ClassFile( dataInputStream );
}
catch (IOException e) {
throw new ArchiveException( "Could not build ClassFile" );
throw new ArchiveException( "Could not build ClassFile", e );
}
finally {
try {