45 lines
2.1 KiB
C#
45 lines
2.1 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>The exception that is thrown when an attempt is made to access an element of an array with an index that is outside the bounds of the array. This class cannot be inherited.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x02000678 RID: 1656
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public sealed class IndexOutOfRangeException : SystemException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IndexOutOfRangeException" /> class.</summary>
|
|
// Token: 0x06003EDE RID: 16094 RVA: 0x000D50D4 File Offset: 0x000D32D4
|
|
public IndexOutOfRangeException()
|
|
: base(Locale.GetText("Array index is out of range."))
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IndexOutOfRangeException" /> class with a specified error message.</summary>
|
|
/// <param name="message">The message that describes the error. </param>
|
|
// Token: 0x06003EDF RID: 16095 RVA: 0x000D50E8 File Offset: 0x000D32E8
|
|
public IndexOutOfRangeException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IndexOutOfRangeException" /> class with a 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 a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. </param>
|
|
// Token: 0x06003EE0 RID: 16096 RVA: 0x000D50F4 File Offset: 0x000D32F4
|
|
public IndexOutOfRangeException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06003EE1 RID: 16097 RVA: 0x000D5100 File Offset: 0x000D3300
|
|
internal IndexOutOfRangeException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
}
|
|
}
|