# ExceptionCodec.GetObjectData(Exception)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/ISerializableSerializer/ExceptionCodec.cs#L119-L124)

```csharp
public SerializationInfo GetObjectData(Exception value)
```

Gets the object data from the provided exception.

### Parameters

- `value` (`Exception`): The value.

### Returns

A populated `System.Runtime.Serialization.SerializationInfo` value.
