geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Dillon <ja...@coredevelopers.net>
Subject Re: [Error handling] NullPointer or IllegalArgument?
Date Thu, 14 Aug 2003 09:28:58 GMT
Um, never... or very infrequently.  I do not think I have ever written 
a bit of code that threw a NPE... not sure why I would actually.

--jason


On Thursday, August 14, 2003, at 04:03  PM, Alex Blewitt wrote:

>
> On Thursday, Aug 14, 2003, at 09:50 Europe/London, James Strachan 
> wrote:
>
>> I favour IAE myself as a guideline though wouldn't rule against NPE 
>> in some code.
>
> In what situations would you use a NPE, then? I can't think of any 
> situation where an NPE could be considered useful when in all other 
> times it reports a bug.
>
> In the situations you outline in your next message, why couldn't you 
> use (say) IAE or even RuntimeException?
>
> Alex.
>


Mime
View raw message