SparkException

org.apache.spark.SparkException
See theSparkException companion object
class SparkException(message: String, cause: Throwable, val errorClass: Option[String], val messageParameters: Map[String, String], val sqlState: Option[String]) extends RuntimeException

The base type for errors raised by the Spark Connect server and surfaced to the client.

Server-side failures arrive over gRPC; the client translates them into this hierarchy so callers catch familiar Spark exceptions (SparkException, AnalysisException, ParseException) carrying the server's original message, error class, message parameters, and SQLSTATE, rather than a raw io.grpc.StatusRuntimeException.

Attributes

Companion
object
Graph
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Constructors

def this(message: String)
def this(message: String, cause: Throwable)

Concrete methods

def getCondition: String

The Spark error condition; an alias of getErrorClass matching SparkThrowable.

The Spark error condition; an alias of getErrorClass matching SparkThrowable.

Attributes

def getErrorClass: String

The Spark error class (e.g. TABLE_OR_VIEW_NOT_FOUND), if the server provided one.

The Spark error class (e.g. TABLE_OR_VIEW_NOT_FOUND), if the server provided one.

Attributes

def getMessageParameters: Map[String, String]

The parameters substituted into the error class's message template.

The parameters substituted into the error class's message template.

Attributes

def getSqlState: String

The five-character SQLSTATE of this error, or null if unknown.

The five-character SQLSTATE of this error, or null if unknown.

Attributes

Inherited methods

final def addSuppressed(x$0: Throwable): Unit

Attributes

Inherited from:
Throwable
def fillInStackTrace(): Throwable

Attributes

Inherited from:
Throwable
def getCause(): Throwable

Attributes

Inherited from:
Throwable
def getLocalizedMessage(): String

Attributes

Inherited from:
Throwable
def getMessage(): String

Attributes

Inherited from:
Throwable
def getStackTrace(): Array[StackTraceElement]

Attributes

Inherited from:
Throwable
final def getSuppressed(): Array[Throwable]

Attributes

Inherited from:
Throwable
def initCause(x$0: Throwable): Throwable

Attributes

Inherited from:
Throwable
def printStackTrace(x$0: PrintWriter): Unit

Attributes

Inherited from:
Throwable
def printStackTrace(x$0: PrintStream): Unit

Attributes

Inherited from:
Throwable
def printStackTrace(): Unit

Attributes

Inherited from:
Throwable
def setStackTrace(x$0: Array[StackTraceElement]): Unit

Attributes

Inherited from:
Throwable
def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Inherited from:
Throwable

Concrete fields

val errorClass: Option[String]
val messageParameters: Map[String, String]
val sqlState: Option[String]