# UnknownUnionCaseException Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.unknownunioncaseexception/)

## UnknownUnionCaseException(Type, uint) {#constructor-system-type-uint-1ece8175}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.unknownunioncaseexception/constructors/constructor-system-type-uint-1ece8175/)

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Serialization/Exceptions.cs#L180-L182)

```csharp
public UnknownUnionCaseException(Type unionType, uint caseId)
```

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

### Parameters

- `unionType` (`Type`): The union type or closed base type being deserialized.
- `caseId` (`uint`): The case identifier which was read.
