This is the mail archive of the
mauve-discuss@sources.redhat.com
mailing list for the Mauve project.
Re: 600+ BigDecimal tests
- From: Stephen Crawley <crawley at dstc dot edu dot au>
- To: abies at pg dot gda dot pl
- Cc: mauve-discuss at sources dot redhat dot com, crawley at piglet dot dstc dot edu dot au
- Date: Mon, 20 Jan 2003 12:10:54 +1000
- Subject: Re: 600+ BigDecimal tests
> Stephen Crawley wrote:
>
> > BTW. Has this question been debated / decided in the past? The reason
> > I ask is that application code may rely on exception message strings to
> > discriminate exception cases. IMO, this is a BAD THING (tm), but in some
> > cases, the application programmer may have little choice.
>
> This is doomed to failure from very start. Exception strings generated
> by system should be localized (so they can be shown to user in worst
> case). So there is no way to write language-portable program which looks
> at details of exception messages.
True ... but this doesn't stop programmers doing this kind of thing out of
ignorance or desperation. Still, I'm convinced that there is little value
in busting a gut to get identical exception messages.
-- Steve