Skip to content

DurableTaskContext.CreateAttemptCanceledException(Exception?)

CreateAttemptCanceledException(Exception?)

View source
protected internal DurableTaskAttemptCanceledException CreateAttemptCanceledException(Exception? innerException)
Creates the exception which this canceled attempt's durable operations throw.

Parameters

innerExceptionException?
The exception which the canceled operation threw, if any.

Exceptions

System.InvalidOperationException
The attempt hasn't been canceled.