commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Kohll - Mailing Lists <>
Subject FileItem.write raw exception
Date Mon, 16 Apr 2012 16:08:07 GMT

FileItem.write throws a raw java.lang.Exception:

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?

Oliver Kohll

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

View raw message