Packages

object SparkException extends Serializable

Source
SparkException.scala
Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparkException
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def constructMessageParams(messageParameters: Map[String, String]): Map[String, String]

    Utility method to construct message params from Java Map.

    Utility method to construct message params from Java Map.

    messageParameters

    The Java Map.

    returns

    Scala collection that can be passed to SparkException constructor.

  2. def internalError(msg: String, cause: Throwable): SparkException
  3. def internalError(msg: String, category: String): SparkException
  4. def internalError(msg: String): SparkException
  5. def internalError(msg: String, context: Array[QueryContext], summary: String, category: Option[String]): SparkException
  6. def internalError(msg: String, context: Array[QueryContext], summary: String): SparkException
  7. def require(requirement: Boolean, errorClass: String, messageParameters: => Map[String, String]): Unit

    This is like the Scala require precondition, except it uses SparkIllegalArgumentException.

    This is like the Scala require precondition, except it uses SparkIllegalArgumentException.

    requirement

    The requirement you want to check

    errorClass

    The error class to type if the requirement isn't passed

    messageParameters

    Message parameters to append to the message