Class InvalidKeyException
Exception to encapsulate invalid key errors.
Inheritance
InvalidKeyException
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(SerializationInfo, StreamingContext)
Declaration
protected InvalidKeyException(SerializationInfo message, StreamingContext context)
Parameters
InvalidKeyException(String)
Declaration
public InvalidKeyException(string message)
Parameters
Type |
Name |
Description |
String |
message |
|
InvalidKeyException(String, Exception)
Declaration
public InvalidKeyException(string message, Exception innerException)
Parameters
Properties
Key
The key used to generate the exception.
Declaration
public object Key { get; }
Property Value
Message
Declaration
public override string Message { get; }
Property Value
Overrides