commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hrjk" <>
Subject [commons vfs] Considering empty (zip) packages
Date Tue, 30 May 2006 12:05:24 GMT

What's the correct handling of empty, but otherwise correct packages? It
seems like currently these (for zip packages atleast) are handled by
throwing FileSystemException and error "Could not open Zip file ...".

Errors start to flow from
Caused by: error in opening zip file
	at Method)
	at<init>(Unknown Source)
	at<init>(Unknown Source)
	... 11 more

I know this issue is rather strange, why should anyone create empty zip
package. But if this case should occur for some reason, is the exception
correct way of handling things? I think that the package should be opened
without exceptions, though there is nothing to be read.

Or do you strongly disagree? :)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message