# DurableTaskAbortedException.DurableTaskAbortedException(string)

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

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/DurableTaskAbortedException.cs#L18-L20)

```csharp
public DurableTaskAbortedException(string reason)
```

Initializes an exception for a task aborted for `reason`.

### Parameters

- `reason` (`string`): The reason the task was aborted, which becomes the exception message.
