# IStorageFaultGrain.OnWrite(GrainId)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.istoragefaultgrain/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.istoragefaultgrain/methods/)

```csharp
public abstract Task OnWrite(GrainId grainId)
```

Throws a storage exception if one has been added for the grain reference for writing.

### Parameters

- `grainId` (`GrainId`)
