File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
sql/pipelines/src/main/scala/org/apache/spark/sql/pipelines/graph Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 17
17
18
18
package org .apache .spark .sql .pipelines .graph
19
19
20
+ import org .apache .spark .SparkException
20
21
import org .apache .spark .sql .AnalysisException
21
22
import org .apache .spark .sql .catalyst .TableIdentifier
22
23
@@ -37,10 +38,12 @@ case class UnresolvedDatasetException(identifier: TableIdentifier)
37
38
* @param name The name of the table
38
39
* @param cause The cause of the failure
39
40
*/
40
- case class LoadTableException (name : String , override val cause : Option [Throwable ])
41
- extends AnalysisException (s " Failed to load table ' $name' " , cause = cause)
42
-
43
-
41
+ case class LoadTableException (name : String , cause : Option [Throwable ])
42
+ extends SparkException (
43
+ errorClass = " INTERNAL_ERROR" ,
44
+ messageParameters = Map (" message" -> s " Failed to load table ' $name' " ),
45
+ cause = cause.orNull
46
+ )
44
47
45
48
/**
46
49
* Exception raised when a pipeline has one or more flows that cannot be resolved
You can’t perform that action at this time.
0 commit comments