Language

TaskFailureDetail Class

Definition

Structured detail describing why a task failed. Projects the cross-language failure record (handler error vs. exhausted retries) into typed members.

public sealed class TaskFailureDetail
type TaskFailureDetail = class
Public NotInheritable Class TaskFailureDetail
Inheritance
TaskFailureDetail

Remarks

The original handler exception is also preserved as InnerException on the ResilientTaskException (with a HandlerError or ExhaustedRetries code). Traceback captures the same formatted stack trace as a string for cross-language parity with the persisted failure record.

Constructors

Name Description
TaskFailureDetail(TaskFailureKind, String, String, Nullable<Int32>, String, String, String)

Initializes a new instance of the TaskFailureDetail class.

Properties

Name Description
Attempts

For exhausted-retries failures, the number of attempts made; otherwise null.

ErrorType

The exception type name, or "exhausted_retries" for retry exhaustion.

Kind

Whether the failure was a direct handler error or exhausted retries.

LastError

For exhausted-retries failures, the message of the final error; otherwise null.

LastErrorType

For exhausted-retries failures, the type name of the final error; otherwise null.

Message

A human-readable summary of the failure.

Traceback

The formatted stack trace of the underlying exception (parity with the persisted failure record's traceback), or null when unavailable.

Applies to