From: Tom Anderson on
On Wed, 26 May 2010, Patricia Shanahan wrote:

> Arne Vajh?j wrote:
>> On 26-05-2010 14:54, Rhino wrote:
>>> Arne Vajh?j<arne(a)vajhoej.dk> wrote in
>>> news:4bfc7690$0$278$14726298(a)news.sunsite.dk:
>>>
>>>> On 25-05-2010 12:02, Rhino wrote:
>>>>> Arne Vajh?j<arne(a)vajhoej.dk> wrote in
>>>>>
>>>>>> In most cases I don't think the exception text would
>>>>>> tell the end user anything.
>>>>>>
>>>>>> Of course there are cases where the message text from the
>>>>>> exception can be used in the end user error text. Just don't
>>>>>> display class names, stack traces etc..
>>>>>
>>>>> I don't log any of this and certainly don't show the user anything
>>>>> like a stacktrace; just the message from the ResourceBundle.
>>>>
>>>> A possible alternative could be to throw a custom exception
>>>> NotHexColorStringException and let the exception handling
>>>> code read the localized text.
>>
>> I am just reluctant to rely too much on the message of an Exception.
>
> I'm particularly dubious about this in connection with
> internationalization, because in some cases logging should be in the
> developers' working language, but GUI display in a language chosen by
> the end user. The same Exception might trigger either or both.

Which is precisely the problem the optionally self-localising exception
class i posted solves:

http://groups.google.com/group/comp.lang.java.programmer/msg/d0a0eb4ea84f3983

tom

--
Kein Mehrheit Fur Die Mitleid
From: Jim Janney on
"Mike Schilling" <mscottschilling(a)hotmail.com> writes:

> Lew wrote:
>> Arne Vajhøj wrote:
>>>> And my guess is that Tom [sic] meant US English.
>>
>> Tom Anderson wrote:
>>> Certainly not! en_GB is the canonical form, and en_US is merely a
>>> popular but subordinate deviation.
>>
>> It has ever amazed me how well the Brits speak English. Awesome!
>
> Some of them even write it well, though rarely as well as the Irish.

"The Gibbelins eat, as is well known, nothing less good than man...."

--
Jim Janney