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
stringMessage 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
FailureUnderlying proto failure.
inner
ExceptionInner exception if any.
converter
IPayloadConverterConverter used for converting details.
Properties
Details
Gets the details of the exception. This is never null.
public IFailureDetails Details { get; protected init; }
Property Value
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; }