cloud-fan commented on code in PR #38582:
URL: https://github.com/apache/spark/pull/38582#discussion_r1019088145


##########
core/src/main/scala/org/apache/spark/SparkException.scala:
##########
@@ -68,6 +68,17 @@ class SparkException(
 }
 
 object SparkException {
+  def internalError(msg: String, context: Array[QueryContext]): SparkException 
= {
+    val errorClass = "INTERNAL_ERROR"
+    val messageParameters = Map("message" -> msg)
+    new SparkException(
+      message = SparkThrowableHelper.getMessage(errorClass, messageParameters),

Review Comment:
   shall we change other `internalError` overloads to load template from json 
file?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to