public class ExceptionFailure extends Object implements TaskFailedReason, scala.Product, scala.Serializable
stackTrace
contains the stack trace of the exception itself. It still exists for backward
compatibility. It's better to use this(e: Throwable, metrics: Option[TaskMetrics])
to
create ExceptionFailure
as it will handle the backward compatibility properly.
fullStackTrace
is a better representation of the stack trace because it contains the whole
stack trace including the exception and its causes
Constructor and Description |
---|
ExceptionFailure(String className,
String description,
StackTraceElement[] stackTrace,
String fullStackTrace,
scala.Option<org.apache.spark.executor.TaskMetrics> metrics) |
ExceptionFailure(Throwable e,
scala.Option<org.apache.spark.executor.TaskMetrics> metrics) |
Modifier and Type | Method and Description |
---|---|
String |
className() |
String |
description() |
String |
fullStackTrace() |
scala.Option<org.apache.spark.executor.TaskMetrics> |
metrics() |
StackTraceElement[] |
stackTrace() |
String |
toErrorString()
Error message displayed in the web UI.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ExceptionFailure(String className, String description, StackTraceElement[] stackTrace, String fullStackTrace, scala.Option<org.apache.spark.executor.TaskMetrics> metrics)
public ExceptionFailure(Throwable e, scala.Option<org.apache.spark.executor.TaskMetrics> metrics)
public String className()
public String description()
public StackTraceElement[] stackTrace()
public String fullStackTrace()
public scala.Option<org.apache.spark.executor.TaskMetrics> metrics()
public String toErrorString()
TaskFailedReason
toErrorString
in interface TaskFailedReason