commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz" <>
Subject Re: [all] exceptions and localization
Date Sun, 04 Feb 2007 00:43:24 GMT
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.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message