We need you! We're working hard on the next version of Developer Fusion - Let us know what you think we should be up to!

The Labs \ Source Viewer \ SSCLI \ System.Resources \ MissingSatelliteAssemblyException

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. /*============================================================
  16. **
  17. ** Class:  MissingSatelliteAssemblyException
  18. **
  19. **
  20. ** Purpose: Exception for a missing satellite assembly needed
  21. **          for ultimate resource fallback.  This usually
  22. **          indicates a setup and/or deployment problem.
  23. **
  24. **
  25. ===========================================================*/
  26. using System;
  27. using System.Runtime.Serialization;
  28. namespace System.Resources
  29. {
  30.     [Serializable()]
  31.     [System.Runtime.InteropServices.ComVisible(true)]
  32.     public class MissingSatelliteAssemblyException : SystemException
  33.     {
  34.         private string _cultureName;
  35.        
  36.         public MissingSatelliteAssemblyException() : base(Environment.GetResourceString("MissingSatelliteAssembly_Default"))
  37.         {
  38.             SetErrorCode(__HResults.COR_E_MISSINGSATELLITEASSEMBLY);
  39.         }
  40.        
  41.         public MissingSatelliteAssemblyException(string message) : base(message)
  42.         {
  43.             SetErrorCode(__HResults.COR_E_MISSINGSATELLITEASSEMBLY);
  44.         }
  45.        
  46.         public MissingSatelliteAssemblyException(string message, string cultureName) : base(message)
  47.         {
  48.             SetErrorCode(__HResults.COR_E_MISSINGSATELLITEASSEMBLY);
  49.             _cultureName = cultureName;
  50.         }
  51.        
  52.         public MissingSatelliteAssemblyException(string message, Exception inner) : base(message, inner)
  53.         {
  54.             SetErrorCode(__HResults.COR_E_MISSINGSATELLITEASSEMBLY);
  55.         }
  56.        
  57.         protected MissingSatelliteAssemblyException(SerializationInfo info, StreamingContext context) : base(info, context)
  58.         {
  59.         }
  60.        
  61.         public string CultureName {
  62.             get { return _cultureName; }
  63.         }
  64.     }
  65. }

Developer Fusion