Package org.apache.spark
Interface SparkThrowable
- All Known Implementing Classes:
AnalysisException
,CatalogNotFoundException
,SparkException
,StreamingQueryException
,UnrecognizedBlockId
@Evolving
public interface SparkThrowable
Interface mixed into Throwables thrown from Spark.
- For backwards compatibility, existing Throwable types can be thrown with an arbitrary error
message with a null error class. See [[SparkException]].
- To promote standardization, Throwables should be thrown with an error class and message
parameters to construct an error message with SparkThrowableHelper.getMessage(). New Throwable
types should not accept arbitrary error messages. See [[SparkArithmeticException]].
- Since:
- 3.2.0
-
Method Summary
Modifier and TypeMethodDescriptionSuccinct, human-readable, unique, and consistent representation of the error condition.default String
Deprecated.default QueryContext[]
default String
default boolean
-
Method Details
-
getCondition
String getCondition()Succinct, human-readable, unique, and consistent representation of the error condition. If null, error condition is not set. -
getErrorClass
Deprecated.UsegetCondition()
instead.Succinct, human-readable, unique, and consistent representation of the error category. If null, error class is not set. -
getSqlState
-
isInternalError
default boolean isInternalError() -
getMessageParameters
-
getQueryContext
-
getCondition()
instead.