Class InvalidKeyException
Exception to encapsulate invalid key errors.
Inheritance
System.Object
InvalidKeyException
Namespace: UnityEngine.AddressableAssets
Syntax
public class InvalidKeyException : Exception
Constructors
InvalidKeyException()
Declaration
public InvalidKeyException()
InvalidKeyException(SerializationInfo, StreamingContext)
Declaration
protected InvalidKeyException(SerializationInfo message, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | message | |
StreamingContext | context |
InvalidKeyException(Object)
Construct a new InvalidKeyException.
Declaration
public InvalidKeyException(object key)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | The key that caused the exception. |
InvalidKeyException(String)
Declaration
public InvalidKeyException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
InvalidKeyException(String, Exception)
Declaration
public InvalidKeyException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
Exception | innerException |
Properties
Key
The key used to generate the exception.
Declaration
public object Key { get; }
Property Value
Type | Description |
---|---|
System.Object |
Message
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
System.String |