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 /*=============================================================================
8 ** Purpose: The exception class for class loading failures.
10 =============================================================================*/
12 using System
.Runtime
.Serialization
;
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
)
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
)