docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor InvalidKeyException

    InvalidKeyException(object)

    Construct a new InvalidKeyException.

    Declaration
    public InvalidKeyException(object key)
    Parameters
    Type Name Description
    object key

    The key that caused the exception.

    InvalidKeyException(object, Type)

    Construct a new InvalidKeyException.

    Declaration
    public InvalidKeyException(object key, Type type)
    Parameters
    Type Name Description
    object key

    The key that caused the exception.

    Type type

    The type of the key that caused the exception.

    InvalidKeyException(object, Type, MergeMode)

    Construct a new InvalidKeyException.

    Declaration
    public InvalidKeyException(object key, Type type, Addressables.MergeMode mergeMode)
    Parameters
    Type Name Description
    object key

    The key that caused the exception.

    Type type

    The type of the key that caused the exception.

    Addressables.MergeMode mergeMode

    The mergeMode of the input that caused the exception.

    InvalidKeyException()

    Exception to encapsulate invalid key errors.

    Declaration
    public InvalidKeyException()

    InvalidKeyException(string)

    Initializes a new instance of the Exception class with a specified error message.

    Declaration
    public InvalidKeyException(string message)
    Parameters
    Type Name Description
    string message

    The message that describes the error.

    InvalidKeyException(string, Exception)

    Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

    Declaration
    public InvalidKeyException(string message, Exception innerException)
    Parameters
    Type Name Description
    string message

    The error message that explains the reason for the exception.

    Exception innerException

    The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

    InvalidKeyException(SerializationInfo, StreamingContext)

    Initializes a new instance of the Exception class with serialized data.

    Declaration
    protected InvalidKeyException(SerializationInfo message, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo message
    StreamingContext context

    The StreamingContext that contains contextual information about the source or destination.

    Exceptions
    Type Condition
    ArgumentNullException

    The info parameter is null.

    SerializationException

    The class name is null or HResult is zero (0).

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)