64 lines
3.1 KiB
C#
64 lines
3.1 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument. </summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x02000638 RID: 1592
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class ArgumentNullException : ArgumentException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ArgumentNullException" /> class.</summary>
|
|
// Token: 0x06003B16 RID: 15126 RVA: 0x000C99D0 File Offset: 0x000C7BD0
|
|
public ArgumentNullException()
|
|
: base(Locale.GetText("Argument cannot be null."))
|
|
{
|
|
base.HResult = -2147467261;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ArgumentNullException" /> class with the name of the parameter that causes this exception.</summary>
|
|
/// <param name="paramName">The name of the parameter that caused the exception. </param>
|
|
// Token: 0x06003B17 RID: 15127 RVA: 0x000C99F0 File Offset: 0x000C7BF0
|
|
public ArgumentNullException(string paramName)
|
|
: base(Locale.GetText("Argument cannot be null."), paramName)
|
|
{
|
|
base.HResult = -2147467261;
|
|
}
|
|
|
|
/// <summary>Initializes an instance of the <see cref="T:System.ArgumentNullException" /> class with a specified error message and the name of the parameter that causes this exception.</summary>
|
|
/// <param name="paramName">The name of the parameter that caused the exception. </param>
|
|
/// <param name="message">A message that describes the error. </param>
|
|
// Token: 0x06003B18 RID: 15128 RVA: 0x000C9A10 File Offset: 0x000C7C10
|
|
public ArgumentNullException(string paramName, string message)
|
|
: base(message, paramName)
|
|
{
|
|
base.HResult = -2147467261;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ArgumentNullException" /> class with a specified error message and the exception that is the cause of this exception.</summary>
|
|
/// <param name="message">The error message that explains the reason for this exception. </param>
|
|
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. </param>
|
|
// Token: 0x06003B19 RID: 15129 RVA: 0x000C9A28 File Offset: 0x000C7C28
|
|
public ArgumentNullException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
base.HResult = -2147467261;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ArgumentNullException" /> class with serialized data.</summary>
|
|
/// <param name="info">The object that holds the serialized object data. </param>
|
|
/// <param name="context">An object that describes the source or destination of the serialized data. </param>
|
|
// Token: 0x06003B1A RID: 15130 RVA: 0x000C9A40 File Offset: 0x000C7C40
|
|
protected ArgumentNullException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x040017A3 RID: 6051
|
|
private const int Result = -2147467261;
|
|
}
|
|
}
|