MissMatchedTypeDiscriminatorException
This exception is thrown when the type field does not match the `IItem`'s type.
Namespace: Microsoft.Azure.CosmosRepository.Exceptions
Kind: class
This exception is thrown when the type field does not match the IItem’s type.
public class MissMatchedTypeDiscriminatorException : Exception, ISerializableRemarks
Creates a MissMatchedTypeDiscriminatorException
Example
Members
Constructor
MissMatchedTypeDiscriminatorException.MissMatchedTypeDiscriminatorException(string, string)
This exception is thrown when the type field does not match the IItem’s type.
public MissMatchedTypeDiscriminatorException(string type, string expectedType)Parameters
| Name | Type | Description |
|---|---|---|
type | String | The current type on the IItem |
expectedType | String | The expected type of the IItem |
Creates a MissMatchedTypeDiscriminatorException
Propertys
MissMatchedTypeDiscriminatorException.Type
The current type that was present on the IItem
public string Type { get; }Returns — String
MissMatchedTypeDiscriminatorException.ExpectedType
The expected type value
public string ExpectedType { get; }Returns — String