using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; namespace System { /// The exception that is thrown when there is an invalid attempt to access a private or protected field inside a class. /// 2 // Token: 0x0200066B RID: 1643 [ComVisible(true)] [Serializable] public class FieldAccessException : MemberAccessException { /// Initializes a new instance of the class. // 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; } /// Initializes a new instance of the class with a specified error message. /// The message that describes the error. // Token: 0x06003E5B RID: 15963 RVA: 0x000D41AC File Offset: 0x000D23AC public FieldAccessException(string message) : base(message) { base.HResult = -2146233081; } /// Initializes a new instance of the class with serialized data. /// The object that holds the serialized object data. /// The contextual information about the source or destination. // Token: 0x06003E5C RID: 15964 RVA: 0x000D41C0 File Offset: 0x000D23C0 protected FieldAccessException(SerializationInfo info, StreamingContext context) : base(info, context) { } /// 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 error message that explains the reason for the exception. /// The exception that is the cause of the current exception. If the parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. // 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; } }