Affects Version/s: None
Fix Version/s: 3.0
The checked "ConvergenceException" should be deprecated.
An example usage is in class ContinuedFraction (package util), at line 153:
I think that it should be replaced by a more specific (and unchecked) exception that reflects the exact low-level problem:
A few lines below that, there is:
So it seems that it is not necessary to throw an exception at the place where the test on "scale" fails; instead we could have:
and let the check on "infinite" throw the exception:
As shown in the above excerpt, we could also replace two enum:
with a single one:
because the other bit of information (infinity vs NaN) is already given by the first parameter of the message.
What do you think of these changes?