TaskFailureDetail Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
| ErrorType |
The exception type name, or |
| Kind |
Whether the failure was a direct handler error or exhausted retries. |
| LastError |
For exhausted-retries failures, the message of the final error; otherwise |
| LastErrorType |
For exhausted-retries failures, the type name of the final error; otherwise |
| Message |
A human-readable summary of the failure. |
| Traceback |
The formatted stack trace of the underlying exception (parity with the persisted
failure record's |