directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Re: [OT] How best to respond to null arguments?
Date Thu, 01 Sep 2005 16:09:45 GMT

Even better if the offending caller's identity is extracted, reformatted for 
human consumption and placed as the argument in the exception thrown;

java.lang.IllegalArgumentException: The class org.niclas.hedhman.SomeCode 
passed a null argument for the third parameter ("history") on line 263, to 
the computeHealthStatus() method in class org.clinic.HealthAssessment.

IMHO, sweet!


Cheers
Niclas

Mime
View raw message