using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// The exception that is thrown when there is an attempt to read or write protected memory.
/// 1
// Token: 0x0200062C RID: 1580
[ComVisible(true)]
[Serializable]
public class AccessViolationException : SystemException
{
/// Initializes a new instance of the class with a system-supplied message that describes the error.
// Token: 0x06003A0B RID: 14859 RVA: 0x000C7308 File Offset: 0x000C5508
public AccessViolationException()
: base(Locale.GetText("Attempted to read or write protected memory. This is often an indication that other memory has been corrupted."))
{
base.HResult = -2147467261;
}
/// Initializes a new instance of the class with a specified message that describes the error.
/// The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
// Token: 0x06003A0C RID: 14860 RVA: 0x000C7328 File Offset: 0x000C5528
public AccessViolationException(string message)
: base(message)
{
base.HResult = -2147467261;
}
/// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception.
/// The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
/// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception.
// Token: 0x06003A0D RID: 14861 RVA: 0x000C733C File Offset: 0x000C553C
public AccessViolationException(string message, Exception innerException)
: base(message, innerException)
{
base.HResult = -2147467261;
}
/// Initializes a new instance of the class with serialized data.
/// The that holds the serialized object data.
/// The that contains contextual information about the source or destination.
// Token: 0x06003A0E RID: 14862 RVA: 0x000C7354 File Offset: 0x000C5554
protected AccessViolationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
// Token: 0x04001762 RID: 5986
private const int Result = -2147467261;
}
}