commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (JIRA)" <>
Subject [jira] Commented: (MATH-446) New exceptions to replace those in package "special"
Date Tue, 30 Nov 2010 18:42:12 GMT


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:
>             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.

View raw message