commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien Brisard <>
Subject Re: [math] Implementation of Conjugate Gradient (MATH-581)
Date Thu, 04 Aug 2011 18:06:00 GMT
2011/8/4 Gilles Sadowski <>:
>> [...]
>> The management of the exception messages through String constants and enums is
>> in my view a very clean thing. Should we do the same for exception context
>> keys? Have a big enum holding keys?
> I'd rather not, but I'm afraid that others will think otherwise :-}.
>> Or should we define these keys as
>> constant, public fields inside those classes which throw exceptions? Or, are
>> we happy with inlining the string, just like in your piece of code?
> If the string appears only once, I'd be happy with inlining. If more than
> once, a (private) constant is better (to quiet CheckStyle).
>> [...]

I'd rather have these fields public (final, static), so that users
could use them to retrieve the values associated with the keys. If
that's all right with you, of course.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message