54 lines
2.4 KiB
C#
54 lines
2.4 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>The exception that is thrown when an array with the wrong number of dimensions is passed to a method.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x020006A2 RID: 1698
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class RankException : SystemException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.RankException" /> class.</summary>
|
|
// Token: 0x06004074 RID: 16500 RVA: 0x000DBBEC File Offset: 0x000D9DEC
|
|
public RankException()
|
|
: base(Locale.GetText("Two arrays must have the same number of dimensions."))
|
|
{
|
|
base.HResult = -2146233065;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.RankException" /> class with a specified error message.</summary>
|
|
/// <param name="message">A <see cref="T:System.String" /> that describes the error. </param>
|
|
// Token: 0x06004075 RID: 16501 RVA: 0x000DBC0C File Offset: 0x000D9E0C
|
|
public RankException(string message)
|
|
: base(message)
|
|
{
|
|
base.HResult = -2146233065;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.RankException" /> 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: 0x06004076 RID: 16502 RVA: 0x000DBC20 File Offset: 0x000D9E20
|
|
public RankException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
base.HResult = -2146233065;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.RankException" /> class with serialized data.</summary>
|
|
/// <param name="info">The object that holds the serialized object data. </param>
|
|
/// <param name="context">The contextual information about the source or destination. </param>
|
|
// Token: 0x06004077 RID: 16503 RVA: 0x000DBC38 File Offset: 0x000D9E38
|
|
protected RankException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x040019A6 RID: 6566
|
|
private const int Result = -2146233065;
|
|
}
|
|
}
|