Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-25986

Banning throw new Errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Build
    • None
    • Hide
      Release notes text:

      Certain methods in Spark MLlib would throw NotImplementedError or UnknownError on illegal input. These have been changed to more standard UnsupportedOperationException and IllegalArgumentException.
      Show
      Release notes text: Certain methods in Spark MLlib would throw NotImplementedError or UnknownError on illegal input. These have been changed to more standard UnsupportedOperationException and IllegalArgumentException.

    Description

      Adding a linter rule to ban the construction of new Errors and then make sure that we throw the correct exceptions. See the PR https://github.com/apache/spark/pull/22969

      Attachments

        Activity

          People

            XuanYuan Yuanjian Li
            smilegator Xiao Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: