Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-555

MathUtils round method should propagate rather than wrap Runitme exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0, 2.1, 2.2
    • 3.0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            psteitz Phil Steitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: