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 /*============================================================
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
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
)
37 HResult
= System
.HResults
.COR_E_MISSINGSATELLITEASSEMBLY
;
40 public MissingSatelliteAssemblyException(string? message
, string? cultureName
)
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
)
58 public string? CultureName
=> _cultureName
;