Fix pragma warning restore (dotnet/coreclr#26389)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / Resources / MissingSatelliteAssemblyException.cs
blob1393362704941701d07311deae57cdcde8917a45
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 **
9 **
11 ** Purpose: Exception for a missing satellite assembly needed
12 ** for ultimate resource fallback. This usually
13 ** indicates a setup and/or deployment problem.
16 ===========================================================*/
18 using System.Runtime.Serialization;
20 namespace System.Resources
22 [Serializable]
23 [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
24 public class MissingSatelliteAssemblyException : SystemException
26 private readonly string? _cultureName;
28 public MissingSatelliteAssemblyException()
29 : base(SR.MissingSatelliteAssembly_Default)
31 HResult = System.HResults.COR_E_MISSINGSATELLITEASSEMBLY;
34 public MissingSatelliteAssemblyException(string? message)
35 : base(message)
37 HResult = System.HResults.COR_E_MISSINGSATELLITEASSEMBLY;
40 public MissingSatelliteAssemblyException(string? message, string? cultureName)
41 : base(message)
43 HResult = System.HResults.COR_E_MISSINGSATELLITEASSEMBLY;
44 _cultureName = cultureName;
47 public MissingSatelliteAssemblyException(string? message, Exception? inner)
48 : base(message, inner)
50 HResult = System.HResults.COR_E_MISSINGSATELLITEASSEMBLY;
53 protected MissingSatelliteAssemblyException(SerializationInfo info, StreamingContext context)
54 : base(info, context)
58 public string? CultureName => _cultureName;