# DurableTaskNotFoundException.DurableTaskNotFoundException(TaskId)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletasknotfoundexception/) | [Constructors](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletasknotfoundexception/constructors/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableTasks/DurableTaskNotFoundException.cs#L21-L24)

```csharp
public DurableTaskNotFoundException(TaskId taskId)
```

Initializes an exception for `taskId`.

### Parameters

- `taskId` (`TaskId`): The durable task identifier.
