--- Henri Yandell <[EMAIL PROTECTED]> wrote: > > I've added: > > <li>the class will not be final</li> > <li>methods should generally be 'nice' and 'quiet'. That is, they > should > suppress Exceptions when sensible. </li>
This sounds fairly dangerous. Methods should always throw appropriate exceptions and never suppress them entirely. > > as rules for XxxUtils and also: > > <h4>Exception throwing</h4> > <p>When throwing an exception to indicate a bad argument, always throw > IllegalArgumentException, even if the argument was null. Do not throw > NullPointerException. </p> This could be interpreted to mean that methods should check for null parameters. I hope that's not what it means because that would be a huge pain. Plus it would defeat the entire purpose of the JVM checking null for you! David > > > Is the 'nice' and 'quiet' one okay? Or should I ignore it because there > are times when XxxUtils might want to throw Exceptions. ie) JdbcUtils > would throw SQLException from everything and IOUtils should throw > IOException from everything. > > Hen > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
