public class ExceptionFailure extends java.lang.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(java.lang.String className,
java.lang.String description,
java.lang.StackTraceElement[] stackTrace,
java.lang.String fullStackTrace,
scala.Option<org.apache.spark.ThrowableSerializationWrapper> exceptionWrapper,
scala.collection.Seq<AccumulableInfo> accumUpdates,
scala.collection.Seq<AccumulatorV2<?,?>> accums) |
| Modifier and Type | Method and Description |
|---|---|
scala.collection.Seq<AccumulableInfo> |
accumUpdates() |
abstract static boolean |
canEqual(java.lang.Object that) |
java.lang.String |
className() |
static boolean |
countTowardsTaskFailures() |
java.lang.String |
description() |
abstract static boolean |
equals(java.lang.Object that) |
scala.Option<java.lang.Throwable> |
exception() |
java.lang.String |
fullStackTrace() |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
java.lang.StackTraceElement[] |
stackTrace() |
java.lang.String |
toErrorString()
Error message displayed in the web UI.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountTowardsTaskFailurespublic ExceptionFailure(java.lang.String className,
java.lang.String description,
java.lang.StackTraceElement[] stackTrace,
java.lang.String fullStackTrace,
scala.Option<org.apache.spark.ThrowableSerializationWrapper> exceptionWrapper,
scala.collection.Seq<AccumulableInfo> accumUpdates,
scala.collection.Seq<AccumulatorV2<?,?>> accums)
public static boolean countTowardsTaskFailures()
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public java.lang.String className()
public java.lang.String description()
public java.lang.StackTraceElement[] stackTrace()
public java.lang.String fullStackTrace()
public scala.collection.Seq<AccumulableInfo> accumUpdates()
public scala.Option<java.lang.Throwable> exception()
public java.lang.String toErrorString()
TaskFailedReasontoErrorString in interface TaskFailedReason