# ExceptionCodec.SetBaseProperties(Exception, string, string, Exception, int, Dictionary&lt;object, object&gt;)

[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#L139-L173)

```csharp
public void SetBaseProperties(Exception value, string message, string stackTrace, Exception innerException, int hResult, Dictionary<object, object> data)
```

Sets base properties on the provided exception.

### Parameters

- `value` (`Exception`): The value.
- `message` (`string`): The message.
- `stackTrace` (`string`): The stack trace.
- `innerException` (`Exception`): The inner exception.
- `hResult` (`int`): The HResult.
- `data` (`Dictionary<object, object>`): The data.
