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

Extract a helper method to eliminate the duplicate code in `GrpcExceptionConverter` that retrieves `MessageParameters` from `ErrorParams`

    XMLWordPrintableJSON

Details

    Description

      params.errorClass match {
        case Some(_) => params.messageParameters
        case None => Map("message" -> params.message)
      } 

      The above code pattern appears 7 times in `GrpcExceptionConverter`.

      Attachments

        Issue Links

          Activity

            People

              LuciferYang Yang Jie
              LuciferYang Yang Jie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: