ResilientTaskException 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.
The single exception type raised by the resilient-task framework. The ErrorCode identifies the failure category; code-specific data is exposed through nullable properties (CurrentStatus, ActualLastInputId, Failure) that are populated only for the corresponding code.
public sealed class ResilientTaskException : Exception
type ResilientTaskException = class
inherit Exception
Public NotInheritable Class ResilientTaskException
Inherits Exception
- Inheritance
-
ResilientTaskException
Remarks
Catch this single type to handle any task-framework protocol failure. Argument validation surfaces as ArgumentException and cancellation as OperationCanceledException; recovery deferral is an internal lifecycle handoff and is never surfaced as an exception.
Constructors
| Name | Description |
|---|---|
| ResilientTaskException(ResilientTaskErrorCode, String, Exception) |
Initializes a new instance of the ResilientTaskException class. |
Properties
| Name | Description |
|---|---|
| ActualLastInputId |
For PreconditionFailed, the task's actual last input id
when known; otherwise |
| CurrentStatus |
For Conflict, the task status the store reported at the
time of the conflict; otherwise |
| ErrorCode |
The failure category. |
| Failure |
For HandlerError and
ExhaustedRetries, the structured failure detail; otherwise
|