docs.unity3d.com
    Show / Hide Table of Contents

    Class InvalidKeyException

    Exception to encapsulate invalid key errors.

    Inheritance
    Object
    Exception
    InvalidKeyException
    Inherited Members
    Exception.GetBaseException()
    Exception.ToString()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.Data
    Exception.InnerException
    Exception.TargetSite
    Exception.StackTrace
    Exception.HelpLink
    Exception.Source
    Exception.HResult
    Exception.SerializeObjectState
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.MemberwiseClone()
    Namespace: UnityEngine.AddressableAssets
    Syntax
    public class InvalidKeyException : Exception, ISerializable, _Exception

    Constructors

    InvalidKeyException()

    Declaration
    public 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(SerializationInfo, StreamingContext)

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

    InvalidKeyException(String)

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

    InvalidKeyException(String, Exception)

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

    Properties

    Key

    The key used to generate the exception.

    Declaration
    public object Key { get; }
    Property Value
    Type Description
    Object

    Message

    Declaration
    public override string Message { get; }
    Property Value
    Type Description
    String
    Overrides
    Exception.Message

    Type

    The type of the key used to generate the exception.

    Declaration
    public Type Type { get; }
    Property Value
    Type Description
    Type
    In This Article
    • Constructors
      • InvalidKeyException()
      • InvalidKeyException(Object)
      • InvalidKeyException(Object, Type)
      • InvalidKeyException(SerializationInfo, StreamingContext)
      • InvalidKeyException(String)
      • InvalidKeyException(String, Exception)
    • Properties
      • Key
      • Message
      • Type
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023