You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Phil Steitz (JIRA)" <ji...@apache.org> on 2011/04/04 06:14:05 UTC

[jira] [Created] (MATH-555) MathUtils round method should propagate rather than wrap Runitme exceptions

MathUtils round method should propagate rather than wrap Runitme exceptions
---------------------------------------------------------------------------

                 Key: MATH-555
                 URL: https://issues.apache.org/jira/browse/MATH-555
             Project: Commons Math
          Issue Type: Bug
            Reporter: Phil Steitz
            Priority: Minor


MathUtils.round(double, int, int) can generate IllegalArgumentException or ArithmeticException.  Instead of wrapping these exceptions in MathRuntimeException, the conditions under which these exceptions can be thrown should be documented and the exceptions should be propagated directly to the caller.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (MATH-555) MathUtils round method should propagate rather than wrap Runitme exceptions

Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phil Steitz resolved MATH-555.
------------------------------

    Resolution: Fixed

Fixed in trunk in r1088473

> MathUtils round method should propagate rather than wrap Runitme exceptions
> ---------------------------------------------------------------------------
>
>                 Key: MATH-555
>                 URL: https://issues.apache.org/jira/browse/MATH-555
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.0, 2.1, 2.2
>            Reporter: Phil Steitz
>            Priority: Minor
>             Fix For: 3.0
>
>
> MathUtils.round(double, int, int) can generate IllegalArgumentException or ArithmeticException.  Instead of wrapping these exceptions in MathRuntimeException, the conditions under which these exceptions can be thrown should be documented and the exceptions should be propagated directly to the caller.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MATH-555) MathUtils round method should propagate rather than wrap Runitme exceptions

Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phil Steitz updated MATH-555:
-----------------------------

    Affects Version/s: 2.0
                       2.1
                       2.2
        Fix Version/s: 3.0

> MathUtils round method should propagate rather than wrap Runitme exceptions
> ---------------------------------------------------------------------------
>
>                 Key: MATH-555
>                 URL: https://issues.apache.org/jira/browse/MATH-555
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.0, 2.1, 2.2
>            Reporter: Phil Steitz
>            Priority: Minor
>             Fix For: 3.0
>
>
> MathUtils.round(double, int, int) can generate IllegalArgumentException or ArithmeticException.  Instead of wrapping these exceptions in MathRuntimeException, the conditions under which these exceptions can be thrown should be documented and the exceptions should be propagated directly to the caller.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira