Table of Contents

Class ActivityFailureException

Namespace
Temporalio.Exceptions
Assembly
Temporalio.dll

Exception that is thrown by the server to workflows when an activity fails.

public class ActivityFailureException : FailureException, ISerializable
Inheritance
ActivityFailureException
Implements
Inherited Members

Constructors

ActivityFailureException(Failure, Exception?)

Initializes a new instance of the ActivityFailureException class.

protected ActivityFailureException(Failure failure, Exception? inner)

Parameters

failure Failure

Underlying proto failure.

inner Exception

Inner exception if any.

Properties

ActivityId

Gets the identifier of the activity that failed.

public string ActivityId { get; }

Property Value

string

ActivityType

Gets the activity name or "type" that failed.

public string ActivityType { get; }

Property Value

string

Failure

Gets the underlying protobuf failure object.

public Failure Failure { get; }

Property Value

Failure

Identity

Gets the identity of the worker where this failed.

public string? Identity { get; }

Property Value

string

RetryState

Gets the retry state for the failure.

public RetryState RetryState { get; }

Property Value

RetryState