# UnexpectedLengthPrefixValueException.UnexpectedLengthPrefixValueException(string, uint, uint)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Exceptions.cs#L581-L583)

```csharp
public UnexpectedLengthPrefixValueException(string typeName, uint expectedLength, uint actualLength)
```

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

### Parameters

- `typeName` (`string`): Name of the type.
- `expectedLength` (`uint`): The expected length.
- `actualLength` (`uint`): The actual length.
