I do not agree with the Exceptions section listed in the wiki. I think that a NPE can be thrown where appropriate. For argument methods which must not be null a NPE is not appropriate. I think we should change the text to make it clear that if you must throw an NPE, then it is okay, but that you need to have a reason todo so and that it must have a description.

--jason


On Thursday, August 14, 2003, at 05:16 PM, Jason Dillon wrote:

org.apache.geronimo.common.NullArgumentException extends "NPE" and
throw new NullArgumentException("address");
(the class name doesn't match with NPE though)

What? NAE extends IAE... really it does.

--jason




Reply via email to