Skip to content

DurableTaskRejectedException Constructors

Represents the start of a durable task whose grain permanently rejected the invocation for a reason other than a conflict, which it reports with a rejection code of its own, or without one.

DurableTaskRejectedException(TaskId, GrainId, string?, string)

View source
public DurableTaskRejectedException(TaskId taskId, GrainId target, string? code, string reason)
Initializes an exception for the rejected invocation of taskId on target.

Parameters

taskIdTaskId
The task which the invocation starts.
targetGrainId
The grain which rejected the invocation.
codestring?
The rejection code which the grain reported, or null for none.
reasonstring
The grain's reason.