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

Banning throw new Errors

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: Build
    • Labels:
    • Target Version/s:
    • Docs Text:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: