Return-Path: Delivered-To: apmail-incubator-geronimo-dev-archive@incubator.apache.org Received: (qmail 51394 invoked by uid 500); 14 Aug 2003 13:03:47 -0000 Mailing-List: contact geronimo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: geronimo-dev@incubator.apache.org Delivered-To: mailing list geronimo-dev@incubator.apache.org Received: (qmail 51365 invoked from network); 14 Aug 2003 13:03:46 -0000 Received: from smtp018.mail.yahoo.com (216.136.174.115) by daedalus.apache.org with SMTP; 14 Aug 2003 13:03:46 -0000 Received: from 82-35-107-109.cable.ubr06.dals.blueyonder.co.uk (HELO yahoo.co.uk) (james?strachan@82.35.107.109 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 14 Aug 2003 13:03:45 -0000 Date: Thu, 14 Aug 2003 14:03:43 +0100 Subject: Re: [Error handling] NullPointer or IllegalArgument? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: James Strachan To: geronimo-dev@incubator.apache.org Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thursday, August 14, 2003, at 01:56 pm, Jason Dillon wrote: >> I guess this could be as easily internationalised as uses of the IAE >> messages, but has the advantage that they're all in one place :-) > > Why is that bad? All that needs to be internationalized is the > "Attribute is null: " bits. I do not suggest we translate the > attribute name, as that is intended to be the name of the java > attribute for easy javadoc refs. I think Alex was agreeing with you. i.e. by using Geronimo's NullArgumentException we can put all the i18n in one place rather than embedding it inside application code. James ------- http://radio.weblogs.com/0112098/