Duplicate :
|
If you try to open a ZIP file which is corrupt, the resulting ZipException makes no mention of which ZIP file was being opened (much less what the problem with the file was). This can make it difficult to diagnose a bare stack trace. By comparison, other file-related IOException's thrown from JRE code are typically given a message noting at least the path name.
|