Class SparkThrowableHelper

Object
org.apache.spark.SparkThrowableHelper

public class SparkThrowableHelper extends Object
Companion object used by instances of SparkThrowable to access error class information and construct error messages.
  • Constructor Details

    • SparkThrowableHelper

      public SparkThrowableHelper()
  • Method Details

    • errorReader

      public static ErrorClassesJsonReader errorReader()
    • getMessage

      public static String getMessage(String errorClass, scala.collection.immutable.Map<String,String> messageParameters)
    • getMessage

      public static String getMessage(String errorClass, Map<String,String> messageParameters)
    • getMessage

      public static String getMessage(String errorClass, scala.collection.immutable.Map<String,String> messageParameters, String context)
    • getSqlState

      public static String getSqlState(String errorClass)
    • isValidErrorClass

      public static boolean isValidErrorClass(String errorClass)
    • getMessageParameters

      public static scala.collection.immutable.Seq<String> getMessageParameters(String errorClass)
    • isInternalError

      public static boolean isInternalError(String errorClass)
    • getMessage

      public static String getMessage(SparkThrowable e, scala.Enumeration.Value format)