Skip to content

DurableTaskAttemptCanceledException Constructors

The exception which every durable operation of a canceled attempt throws, so the attempt's code unwinds and releases its in-process resources.

DurableTaskAttemptCanceledException(DurableTaskAttemptCancellationReason, CancellationToken, Exception?)

View source
public DurableTaskAttemptCanceledException(DurableTaskAttemptCancellationReason reason, CancellationToken token, Exception? innerException = null)
Initializes an exception for an attempt canceled for reason, with a message which describes it.

Parameters

reasonDurableTaskAttemptCancellationReason
Why the host canceled the attempt.
tokenCancellationToken
The attempt's cancellation token.
innerExceptionException?
The exception which the canceled operation threw, if any.

DurableTaskAttemptCanceledException(string?)

View source
public DurableTaskAttemptCanceledException(string? message)
Initializes an exception with message, for an attempt canceled because its activation is stopping.

Parameters

messagestring?
The message which describes the cancellation.

DurableTaskAttemptCanceledException(string?, Exception?)

View source
public DurableTaskAttemptCanceledException(string? message, Exception? innerException)
Initializes an exception with message, for an attempt canceled because its activation is stopping.

Parameters

messagestring?
The message which describes the cancellation.
innerExceptionException?
The exception which the canceled operation threw.

DurableTaskAttemptCanceledException(string?, Exception?, DurableTaskAttemptCancellationReason, CancellationToken)

View source
public DurableTaskAttemptCanceledException(string? message, Exception? innerException, DurableTaskAttemptCancellationReason reason, CancellationToken token)
Initializes an exception for an attempt canceled for reason.

Parameters

messagestring?
The message which describes the cancellation.
innerExceptionException?
The exception which the canceled operation threw.
reasonDurableTaskAttemptCancellationReason
Why the host canceled the attempt.
tokenCancellationToken
The attempt's cancellation token.