Table of Contents

Class CanceledFailureException

Namespace
Temporalio.Exceptions
Assembly
Temporalio.dll

Exception representing a cancellation.

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

Constructors

CanceledFailureException(string, IReadOnlyCollection<object?>?)

Initializes a new instance of the CanceledFailureException class.

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

Parameters

message string

Message for the exception.

details IReadOnlyCollection<object>

Details for the exception.

CanceledFailureException(Failure, Exception?, IPayloadConverter)

Initializes a new instance of the CanceledFailureException class.

protected CanceledFailureException(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