Files
2026-06-04 11:42:34 +02:00

54 lines
2.5 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// <summary>The exception that is thrown when there is an invalid attempt to access a private or protected field inside a class.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x0200066B RID: 1643
[ComVisible(true)]
[Serializable]
public class FieldAccessException : MemberAccessException
{
/// <summary>Initializes a new instance of the <see cref="T:System.FieldAccessException" /> class.</summary>
// Token: 0x06003E5A RID: 15962 RVA: 0x000D418C File Offset: 0x000D238C
public FieldAccessException()
: base(Locale.GetText("Attempt to access a private/protected field failed."))
{
base.HResult = -2146233081;
}
/// <summary>Initializes a new instance of the <see cref="T:System.FieldAccessException" /> class with a specified error message.</summary>
/// <param name="message">The message that describes the error. </param>
// Token: 0x06003E5B RID: 15963 RVA: 0x000D41AC File Offset: 0x000D23AC
public FieldAccessException(string message)
: base(message)
{
base.HResult = -2146233081;
}
/// <summary>Initializes a new instance of the <see cref="T:System.FieldAccessException" /> 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: 0x06003E5C RID: 15964 RVA: 0x000D41C0 File Offset: 0x000D23C0
protected FieldAccessException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.FieldAccessException" /> 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="inner">The exception that is the cause of the current exception. If the <paramref name="inner" /> 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: 0x06003E5D RID: 15965 RVA: 0x000D41CC File Offset: 0x000D23CC
public FieldAccessException(string message, Exception inner)
: base(message, inner)
{
base.HResult = -2146233081;
}
// Token: 0x040018FD RID: 6397
private const int Result = -2146233081;
}
}