Fix pragma warning restore (dotnet/coreclr#26389)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / FieldAccessException.cs
blob20b4bd95164f97cb999053d81109a0c2bc085ef9
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 /*=============================================================================
6 **
7 **
8 ** Purpose: The exception class for class loading failures.
9 **
10 =============================================================================*/
12 using System.Runtime.Serialization;
14 namespace System
16 [Serializable]
17 [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
18 public class FieldAccessException : MemberAccessException
20 public FieldAccessException()
21 : base(SR.Arg_FieldAccessException)
23 HResult = HResults.COR_E_FIELDACCESS;
26 public FieldAccessException(string? message)
27 : base(message)
29 HResult = HResults.COR_E_FIELDACCESS;
32 public FieldAccessException(string? message, Exception? inner)
33 : base(message, inner)
35 HResult = HResults.COR_E_FIELDACCESS;
38 protected FieldAccessException(SerializationInfo info, StreamingContext context) : base(info, context)