# OrleansReadOnlyViolatedException

Package: [Microsoft.Orleans.Transactions](/orleans/docs/api/csharp/microsoft.orleans.transactions/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Transactions) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/OrleansTransactionException.cs#L231)

```csharp
[Orleans.GenerateSerializer]
public sealed class OrleansReadOnlyViolatedException : OrleansTransactionAbortedException
```

Signifies that the executing read-only transaction has aborted because it attempted to write to a grain.

## Constructors

- [OrleansReadOnlyViolatedException(string)](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.orleansreadonlyviolatedexception/constructors/constructor-string-119fb37f/)
