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

Move "MathUtils.check..." functions to associated exception class

    XMLWordPrintableJSON

Details

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

    Description

      Instead of

      MathUtils.checkFinite(x);
      

      we'll have

      NotFiniteNumberException.check(x);
      

      that self-documents which exception is raised when the forbidden condition is matched.

      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: