using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System.Collections.Generic
{
/// The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection.
/// 1
// Token: 0x0200010C RID: 268
[ComVisible(true)]
[Serializable]
public class KeyNotFoundException : SystemException, ISerializable
{
/// Initializes a new instance of the class using default property values.
// Token: 0x06000CFF RID: 3327 RVA: 0x00039E58 File Offset: 0x00038058
public KeyNotFoundException()
: base("The given key was not present in the dictionary.")
{
}
/// Initializes a new instance of the class with the specified error message.
/// The message that describes the error.
// Token: 0x06000D00 RID: 3328 RVA: 0x00039E68 File Offset: 0x00038068
public KeyNotFoundException(string message)
: base(message)
{
}
/// Initializes a new instance of the class with the specified error message and a reference to the inner exception that is the cause of this exception.
/// The error message that explains the reason for the exception.
/// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception.
// Token: 0x06000D01 RID: 3329 RVA: 0x00039E74 File Offset: 0x00038074
public KeyNotFoundException(string message, Exception innerException)
: base(message, innerException)
{
}
/// Initializes a new instance of the class with serialized data.
/// The that holds the serialized object data about the exception being thrown.
/// The that contains contextual information about the source or destination.
// Token: 0x06000D02 RID: 3330 RVA: 0x00039E80 File Offset: 0x00038080
protected KeyNotFoundException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}