Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 90726 invoked from network); 4 Feb 2007 00:44:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2007 00:44:50 -0000 Received: (qmail 19069 invoked by uid 500); 4 Feb 2007 00:44:55 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 19054 invoked by uid 500); 4 Feb 2007 00:44:55 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 19041 invoked by uid 99); 4 Feb 2007 00:44:55 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of phil.steitz@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Feb 2007 16:44:53 -0800 Received: by ug-out-1314.google.com with SMTP id 32so1274740ugm for ; Sat, 03 Feb 2007 16:43:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ROltSvovh4R1eQlgxvcJD9ONGpHCpy+lazn7TM+KcWshXU1xPXYGeNKLtXnmC1ZgkIHwybLyopNpE5WHWXrCkYZFNLwvG+5fNC0D63GuU7SvVoHqHfV2qHNtGo9IfIOY66wIuVXaXOIOSSN7OiWSylJPlYtJoMtsyONrSfG7vA4= Received: by 10.67.92.1 with SMTP id u1mr6354357ugl.1170549804879; Sat, 03 Feb 2007 16:43:24 -0800 (PST) Received: by 10.66.239.3 with HTTP; Sat, 3 Feb 2007 16:43:24 -0800 (PST) Message-ID: <8a81b4af0702031643l5dfe1ce1h4228fdbbe5b276eb@mail.gmail.com> Date: Sat, 3 Feb 2007 17:43:24 -0700 From: "Phil Steitz" To: "Jakarta Commons Developers List" Subject: Re: [all] exceptions and localization In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1668_298791.1170549804762" References: <45BC9813.2030708@free.fr> <1170163931.45bf48db444cd@imp.free.fr> <8a81b4af0702031054v2034d673i3ff1280bb892efd1@mail.gmail.com> <55afdc850702031233v7960bbc0l912223244806caf6@mail.gmail.com> <8a81b4af0702031247o2ce99b37pcd0b9f7849879470@mail.gmail.com> <8a81b4af0702031311y44a4bd56n573474fde3342e34@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1668_298791.1170549804762 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 2/3/07, James Carman wrote: > > How would they subclass? The commons math code will be throwing these > exceptions themselves, no? They wouldn't be able to tell commons math > to throw a specific type of exception class that they wrote. Yes, you're right. I agree that the default case (the JDK's getMessage() method) should > work so that nobody has to know about the special i18n facilities. > But, if you're truly looking to provide a rich i18n framework for > exceptions, you need to make it extensible/adaptable. I think exposing the key and parts and adding getMessage(Locale) is probably good enough. Phil ------=_Part_1668_298791.1170549804762--