MaxGekk commented on code in PR #38582:
URL: https://github.com/apache/spark/pull/38582#discussion_r1019383970
##########
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:
@cloud-fan Could you clarify this `to load template from json file`, please.
All `internalError` load templates from `error-classes.json`, as I can see
`internalError` invokes `SparkThrowableHelper.getMessage()` eventually.
--
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]