# SerializerException.SerializerException(SerializationInfo, StreamingContext)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.serializerexception/) | [Constructors](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.serializerexception/constructors/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Serialization/Exceptions.cs#L50-L52)

```csharp
[System.Obsolete]
protected SerializerException(SerializationInfo info, StreamingContext context)
```

Initializes a new instance of the [SerializerException](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.serializerexception/) class.

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