# DurableTaskConflictException Constructors

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

## DurableTaskConflictException(TaskId, string) {#constructor-orleans-durable-tasks-taskid-string-b955fa31}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.durabletaskconflictexception/constructors/constructor-orleans-durable-tasks-taskid-string-b955fa31/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableTasks/DurableTaskConflictException.cs#L26-L29)

```csharp
public DurableTaskConflictException(TaskId taskId, string message)
```

Initializes an exception for `taskId`.

### Parameters

- `taskId` (`TaskId`): The task identifier which the target associates with another operation.
- `message` (`string`): A description of the recorded and the requested operations.
