You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Oliver Kohll - Mailing Lists <ol...@gtwm.co.uk> on 2012/04/16 18:08:07 UTC
FileItem.write raw exception
Hello,
FileItem.write throws a raw java.lang.Exception:
http://commons.apache.org/fileupload/apidocs/org/apache/commons/fileupload/FileItem.html#write(java.io.File)
which I believe is bad practice - clients must catch any RuntimeException and also the API provides no info about which type of non-runtime exceptions may be generated. It certainly feels bad coding against it.
I know fixing this would be an API change, but it would be backwards compatible.
Or is there a good reason for throwing the raw exception?
Regards
Oliver Kohll
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org