# DeactivationReason.Exception

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.deactivationreason/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.deactivationreason/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Core/DeactivationReason.cs#L58)

```csharp
public Exception? Exception
```

Gets the exception which resulted in deactivation.
