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 getCondition(): String

    Succinct, human-readable, unique, and consistent representation of the error condition.

    Succinct, human-readable, unique, and consistent representation of the error condition. If null, error condition is not set.

Concrete Value Members

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

Deprecated Value Members

  1. def getErrorClass(): String

    Succinct, human-readable, unique, and consistent representation of the error category.

    Succinct, human-readable, unique, and consistent representation of the error category. If null, error class is not set.

    Annotations
    @Deprecated
    Deprecated