# DurableTaskVersionException Constructors

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

## DurableTaskVersionException(TaskId, string, int, int, int) {#constructor-orleans-durable-tasks-taskid-string-int-int-int-de846a38}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskversionexception/constructors/constructor-orleans-durable-tasks-taskid-string-int-int-int-de846a38/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/DurableTaskVersionException.cs#L25-L32)

```csharp
public DurableTaskVersionException(TaskId taskId, string name, int version, int minSupported, int maxSupported)
```

Initializes an exception for the recorded version `version` of `name`.

### Parameters

- `taskId` (`TaskId`): The execution which recorded the version.
- `name` (`string`): The change's name.
- `version` (`int`): The execution's recorded version.
- `minSupported` (`int`): The minimum version which the running code supports.
- `maxSupported` (`int`): The maximum version which the running code supports.
