You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/08/27 16:11:00 UTC
[GitHub] [spark] karenfeng commented on a change in pull request #33856: [SPARK-36336][SQL][FOLLOWUP] Mark exception `private[spark]`
karenfeng commented on a change in pull request #33856:
URL: https://github.com/apache/spark/pull/33856#discussion_r697560420
##########
File path: core/src/main/scala/org/apache/spark/SparkException.scala
##########
@@ -90,7 +90,7 @@ private[spark] class SparkArithmeticException(errorClass: String, messageParamet
/**
* Class not found exception thrown from Spark with an error class.
*/
-class SparkClassNotFoundException(
+private[spark] class SparkClassNotFoundException(
Review comment:
I agree that we want to keep this package-private; the user can catch `ClassNotFoundException` or `SparkThrowable` as discussed here https://github.com/apache/spark/pull/33824#discussion_r695054945. It's a pretty vague exception type, so I think it's more likely they'll want to catch by the error class or SQLSTATE from the `SparkThrowable`.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org