Files
Dec2017-Script-Dump/mscorlib/System/AccessViolationException.cs
T
2026-06-04 11:42:34 +02:00

54 lines
3.0 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// <summary>The exception that is thrown when there is an attempt to read or write protected memory.</summary>
/// <filterpriority>1</filterpriority>
// Token: 0x0200062C RID: 1580
[ComVisible(true)]
[Serializable]
public class AccessViolationException : SystemException
{
/// <summary>Initializes a new instance of the <see cref="T:System.AccessViolationException" /> class with a system-supplied message that describes the error.</summary>
// 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;
}
/// <summary>Initializes a new instance of the <see cref="T:System.AccessViolationException" /> class with a specified message that describes the error.</summary>
/// <param name="message">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.</param>
// Token: 0x06003A0C RID: 14860 RVA: 0x000C7328 File Offset: 0x000C5528
public AccessViolationException(string message)
: base(message)
{
base.HResult = -2147467261;
}
/// <summary>Initializes a new instance of the <see cref="T:System.AccessViolationException" /> 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 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. </param>
/// <param name="innerException">The exception that is the cause of the current exception. If the <paramref name="innerException" /> parameter is not null, the current exception is raised in a catch block that handles the inner exception. </param>
// Token: 0x06003A0D RID: 14861 RVA: 0x000C733C File Offset: 0x000C553C
public AccessViolationException(string message, Exception innerException)
: base(message, innerException)
{
base.HResult = -2147467261;
}
/// <summary>Initializes a new instance of the <see cref="T:System.AccessViolationException" /> class with serialized data.</summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data. </param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination. </param>
// 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;
}
}