[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: [jira] Commented: (MATH-446) New exceptions to replace those in
From: "Luc Maisonobe (JIRA)" <jira () apache ! org>
Date: 2010-11-30 18:42:12
Message-ID: 25548181.29121291142532719.JavaMail.jira () thor
[Download RAW message or body]
[ 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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic