using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// 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.
/// 2
// Token: 0x02000638 RID: 1592
[ComVisible(true)]
[Serializable]
public class ArgumentNullException : ArgumentException
{
/// Initializes a new instance of the class.
// Token: 0x06003B16 RID: 15126 RVA: 0x000C99D0 File Offset: 0x000C7BD0
public ArgumentNullException()
: base(Locale.GetText("Argument cannot be null."))
{
base.HResult = -2147467261;
}
/// Initializes a new instance of the class with the name of the parameter that causes this exception.
/// The name of the parameter that caused the exception.
// Token: 0x06003B17 RID: 15127 RVA: 0x000C99F0 File Offset: 0x000C7BF0
public ArgumentNullException(string paramName)
: base(Locale.GetText("Argument cannot be null."), paramName)
{
base.HResult = -2147467261;
}
/// Initializes an instance of the class with a specified error message and the name of the parameter that causes this exception.
/// The name of the parameter that caused the exception.
/// A message that describes the error.
// Token: 0x06003B18 RID: 15128 RVA: 0x000C9A10 File Offset: 0x000C7C10
public ArgumentNullException(string paramName, string message)
: base(message, paramName)
{
base.HResult = -2147467261;
}
/// Initializes a new instance of the class with a specified error message and the exception that is the cause of this exception.
/// The error message that explains the reason for this exception.
/// The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
// Token: 0x06003B19 RID: 15129 RVA: 0x000C9A28 File Offset: 0x000C7C28
public ArgumentNullException(string message, Exception innerException)
: base(message, innerException)
{
base.HResult = -2147467261;
}
/// Initializes a new instance of the class with serialized data.
/// The object that holds the serialized object data.
/// An object that describes the source or destination of the serialized data.
// 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;
}
}