# 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/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Serialization/ISerializableSerializer/ExceptionCodec.cs#L138-L172)

```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.
