# DurableTaskDeliveryException Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletaskdeliveryexception/)

## DurableTaskDeliveryException(TaskId, GrainId, string) {#constructor-orleans-durable-tasks-taskid-orleans-runtime-grainid-string-ab9f1a45}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletaskdeliveryexception/constructors/constructor-orleans-durable-tasks-taskid-orleans-runtime-grainid-string-ab9f1a45/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableTasks/DurableTaskDeliveryException.cs#L37-L41)

```csharp
public DurableTaskDeliveryException(TaskId taskId, GrainId target, string reason)
```

Initializes an exception for the invocation of `taskId` on `target`.

### Parameters

- `taskId` (`TaskId`): The task which the invocation starts.
- `target` (`GrainId`): The grain to which the invocation is addressed.
- `reason` (`string`): The dead letter's reason.
