Packages

t

org.apache.spark

SparkThrowable

trait SparkThrowable extends AnyRef

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.

Annotations
@Evolving()
Source
SparkThrowable.java
Since

3.2.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparkThrowable
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def getErrorClass(): String

Concrete Value Members

  1. def getMessageParameters(): Map[String, String]
  2. def getQueryContext(): Array[QueryContext]
  3. def getSqlState(): String
  4. def isInternalError(): Boolean