[ 
https://issues.apache.org/jira/browse/MATH-446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965335#action_12965335
 ] 

Luc Maisonobe commented on MATH-446:
------------------------------------

I'll prefer simply propagate the more specific exception.
One way to be sure of what may be propagated is to temporarily have 
MathIllegalArgumentException, MathIllegalStateException, 
MathArithmeticException extend a checked rather than an unchecked exception, 
then fix the throws/javadoc and then revert the exception back before commit. 
This is how I handled FunctionEvaluationException, MatrixVisitorException and 
DerivativeException ; it was much easier and less error-prone than reading code.

> New exceptions to replace those in package "special"
> ----------------------------------------------------
>
>                 Key: MATH-446
>                 URL: https://issues.apache.org/jira/browse/MATH-446
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Gilles
>            Priority: Minor
>             Fix For: 3.0
>
>
> Classes in this package uses deprecated exception objects 
> ({{MaxIterationsExceededException}}).
> Also, many methods have signatures that contain the checked "MathException". 
> It should be removed.
> We can either let the {{MaxCountExceededException}} propagate, or wrap it 
> into a more general type ({{MathIllegalStateException}} (?)).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to