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
exception
is the actual exception that caused the task to fail. It may be None
in
the case that the exception is not in fact serializable. If a task fails more than
once (due to retries), exception
is that one that caused the last failure.
Constructor and Description |
---|
ExceptionFailure(String className,
String description,
StackTraceElement[] stackTrace,
String fullStackTrace,
scala.Option<org.apache.spark.ThrowableSerializationWrapper> exceptionWrapper,
scala.collection.Seq<AccumulableInfo> accumUpdates,
scala.collection.Seq<AccumulatorV2<?,?>> accums,
scala.collection.Seq<Object> metricPeaks) |
Modifier and Type | Method and Description |
---|---|
scala.collection.Seq<AccumulableInfo> |
accumUpdates() |
abstract static R |
apply(T1 v1,
T2 v2,
T3 v3,
T4 v4,
T5 v5,
T6 v6,
T7 v7,
T8 v8) |
String |
className() |
String |
description() |
scala.Option<Throwable> |
exception() |
String |
fullStackTrace() |
StackTraceElement[] |
stackTrace() |
String |
toErrorString()
Error message displayed in the web UI.
|
static String |
toString() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countTowardsTaskFailures
public ExceptionFailure(String className, String description, StackTraceElement[] stackTrace, String fullStackTrace, scala.Option<org.apache.spark.ThrowableSerializationWrapper> exceptionWrapper, scala.collection.Seq<AccumulableInfo> accumUpdates, scala.collection.Seq<AccumulatorV2<?,?>> accums, scala.collection.Seq<Object> metricPeaks)
public abstract static R apply(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8)
public static String toString()
public String className()
public String description()
public StackTraceElement[] stackTrace()
public String fullStackTrace()
public scala.collection.Seq<AccumulableInfo> accumUpdates()
public scala.Option<Throwable> exception()
public String toErrorString()
TaskFailedReason
toErrorString
in interface TaskFailedReason