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

ArithmeticException vs MathArithmeticException

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Trivial
    • Resolution: Done
    • None
    • 4.0
    • None

    Description

      Some AccurateMath methods throw MathArithmeticException which is not a subclass of ArithmeticException.

      In those methods, I propose to throw ArithmeticException instead, which goes along AccurateMath being a "drop-in" replacement of the JDK's Math class.

      Once the dependency on commons-math-legacy-exception is dropped, the class can be moved to module commons-math-core.

      Attachments

        Activity

          People

            erans Gilles Sadowski
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: