# CosmosConditionNotSatisfiedException Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosconditionnotsatisfiedexception/)

## GetObjectData(SerializationInfo, StreamingContext) {#getobjectdata-system-runtime-serialization-serializationinfo-system-runtime-seri-d24bc31f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosconditionnotsatisfiedexception/methods/getobjectdata-system-runtime-serialization-serializationinfo-system-runtime-seri-d24bc31f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Persistence.Cosmos/CosmosConditionNotSatisfiedException.cs#L109-L115)

```csharp
[System.Obsolete]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
```

When overridden in a derived class, sets the `System.Runtime.Serialization.SerializationInfo` with information about the exception.

### Parameters

- `info` (`SerializationInfo`): The `System.Runtime.Serialization.SerializationInfo` that holds the serialized object data about the exception being thrown.
- `context` (`StreamingContext`): The `System.Runtime.Serialization.StreamingContext` that contains contextual information about the source or destination.

### Exceptions

- `System.ArgumentNullException`: The `info` parameter is a null reference (`Nothing` in Visual Basic).
