Table of Contents

Class CancelledFailureException

Namespace
Temporalio.Exceptions
Assembly
Temporalio.dll

Exception representing a cancellation.

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

Constructors

CancelledFailureException(string, IReadOnlyCollection<object?>?)

Initializes a new instance of the CancelledFailureException class.

protected CancelledFailureException(string message, IReadOnlyCollection<object?>? details = null)

Parameters

message string

Message for the exception.

details IReadOnlyCollection<object>

Details for the exception.

CancelledFailureException(Failure, Exception?, IPayloadConverter)

Initializes a new instance of the CancelledFailureException class.

protected CancelledFailureException(Failure failure, Exception? inner, IPayloadConverter converter)

Parameters

failure Failure

Underlying proto failure.

inner Exception

Inner exception if any.

converter IPayloadConverter

Converter used for converting details.

Properties

Details

Gets the details of the exception. This is never null.

public IFailureDetails Details { get; protected init; }

Property Value

IFailureDetails

Remarks

This will be OutboundFailureDetails for user-created exceptions and InboundFailureDetails for server-serialized exceptions.

Failure

Gets the underlying protobuf failure object.

public Failure Failure { get; }

Property Value

Failure