On 2/3/07, James Carman <[EMAIL PROTECTED]> 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
