Files
2026-06-04 11:42:34 +02:00

48 lines
2.6 KiB
C#

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