Class CancelledFailureException
Exception representing a cancellation.
Namespace: Temporalio.Exceptions
Assembly: Temporalio.dll
Syntax
public class CancelledFailureException : FailureException
Constructors
CancelledFailureException(String, Nullable<IReadOnlyCollection<Object>>)
Initializes a new instance of the CancelledFailureException class.
Declaration
protected CancelledFailureException(string message, IReadOnlyCollection<object>? details = null)
Parameters
Type | Name | Description |
---|---|---|
String | message | Message for the exception. |
Nullable<IReadOnlyCollection<Object>> | details | Details for the exception. |
CancelledFailureException(Failure, Nullable<Exception>, IPayloadConverter)
Initializes a new instance of the CancelledFailureException class.
Declaration
protected CancelledFailureException(Failure failure, Exception? inner, IPayloadConverter converter)
Parameters
Type | Name | Description |
---|---|---|
Failure | failure | Underlying proto failure. |
Nullable<Exception> | inner | Inner exception if any. |
IPayloadConverter | converter | Converter used for converting details. |
Properties
Details
Gets the details of the exception. This is never null.
Declaration
public IFailureDetails Details { get; }
Property Value
Type | Description |
---|---|
IFailureDetails |
Remarks
This will be
Failure
Gets the underlying protobuf failure object.
Declaration
public Failure Failure { get; }
Property Value
Type | Description |
---|---|
Failure |