geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Strachan <james_strac...@yahoo.co.uk>
Subject Re: [Error handling] NullPointer or IllegalArgument?
Date Thu, 14 Aug 2003 08:52:01 GMT

On Thursday, August 14, 2003, at 09:35  am, Jason Dillon wrote:

>> [Exception] IllegalArgumentException: address must not be null
>
> +1
>
> org.apache.geronimo.common.NullArgumentException extends IAE and 
> handles the formatting of the message too, so you can:
>
> throw new NullArgumentException("address");

Hey neat - you learn something new every day :)

James
-------
http://radio.weblogs.com/0112098/


Mime
View raw message