Class PropertyInvalidCastException
Exception thrown when a wrong PropertyType is given to a property.
Inherited Members
Namespace: UnityEngine.GameFoundation.Exceptions
Syntax
public class PropertyInvalidCastException : GameFoundationException, ISerializable, _Exception
Constructors
PropertyInvalidCastException(String, PropertyType, PropertyType)
Initializes a new instance of the PropertyInvalidCastException type.
Declaration
public PropertyInvalidCastException(string key, PropertyType expectedType, PropertyType givenType)
Parameters
| Type | Name | Description |
|---|---|---|
| String | key | The identifier of the property. |
| PropertyType | expectedType | The expected type of the property identified by the |
| PropertyType | givenType | The given type of the property. |
Properties
expectedPropertyType
The expected property type.
Declaration
public PropertyType expectedPropertyType { get; }
Property Value
| Type | Description |
|---|---|
| PropertyType |
givenPropertyType
The given property type.
Declaration
public PropertyType givenPropertyType { get; }
Property Value
| Type | Description |
|---|---|
| PropertyType |
propertyKey
Key of the property that received the wrong property type.
Declaration
public string propertyKey { get; }
Property Value
| Type | Description |
|---|---|
| String |