Class ActivityFailureException
Exception that is thrown by the server to workflows when an activity fails.
Namespace: Temporalio.Exceptions
Assembly: Temporalio.dll
Syntax
public class ActivityFailureException : FailureException
Constructors
ActivityFailureException(Failure, Nullable<Exception>)
Initializes a new instance of the ActivityFailureException class.
Declaration
protected ActivityFailureException(Failure failure, Exception? inner)
Parameters
Type | Name | Description |
---|---|---|
Failure | failure | Underlying proto failure. |
Nullable<Exception> | inner | Inner exception if any. |
Properties
ActivityID
Gets the identifier of the activity that failed.
Declaration
public string ActivityID { get; }
Property Value
Type | Description |
---|---|
String |
ActivityType
Gets the activity name or "type" that failed.
Declaration
public string ActivityType { get; }
Property Value
Type | Description |
---|---|
String |
Failure
Gets the underlying protobuf failure object.
Declaration
public Failure Failure { get; }
Property Value
Type | Description |
---|---|
Failure |
Identity
Gets the identity of the worker where this failed.
Declaration
public string? Identity { get; }
Property Value
Type | Description |
---|---|
Nullable<String> |
RetryState
Gets the retry state for the failure.
Declaration
public RetryState RetryState { get; }
Property Value
Type | Description |
---|---|
RetryState |