commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Werpachowski (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MATH-443) Incorrect exception specification in AbstractLeastSquaresOptimizer.optimize()
Date Thu, 18 Nov 2010 19:40:14 GMT

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

Roman Werpachowski commented on MATH-443:
-----------------------------------------

My personal preference is for checked exceptions, but I can live with unchecked, as long as
they are documented and I know what to catch in my code.

> Incorrect exception specification in AbstractLeastSquaresOptimizer.optimize()
> -----------------------------------------------------------------------------
>
>                 Key: MATH-443
>                 URL: https://issues.apache.org/jira/browse/MATH-443
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.0, 2.1
>            Reporter: Roman Werpachowski
>            Priority: Minor
>
> AbstractLeastSquaresOptimizer.optimize() declares the following exceptions: FunctionEvaluationException,
OptimizationException, IllegalArgumentException. However, it also throws MaxIterationsExceededException.
I think that instead of OptimizationException, ConvergenceException should be declared.

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


Mime
View raw message