The Labs \ Source Viewer \ SSCLI \ System.Runtime.Remoting \ RemotingTimeoutException

  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: RemotingException
  18. **
  19. **
  20. ** Purpose: Exception class for remoting
  21. **
  22. **
  23. =============================================================================*/
  24. namespace System.Runtime.Remoting
  25. {
  26.     using System.Runtime.Remoting;
  27.     using System;
  28.     using System.Runtime.Serialization;
  29.     [Serializable()]
  30.     [System.Runtime.InteropServices.ComVisible(true)]
  31.     public class RemotingException : SystemException
  32.     {
  33.        
  34.         private static string _nullMessage = Environment.GetResourceString("Remoting_Default");
  35.        
  36.         // Creates a new RemotingException with its message
  37.         // string set to a default message.
  38.         public RemotingException() : base(_nullMessage)
  39.         {
  40.             SetErrorCode(__HResults.COR_E_REMOTING);
  41.         }
  42.        
  43.         public RemotingException(string message) : base(message)
  44.         {
  45.             SetErrorCode(__HResults.COR_E_REMOTING);
  46.         }
  47.        
  48.        
  49.         public RemotingException(string message, Exception InnerException) : base(message, InnerException)
  50.         {
  51.             SetErrorCode(__HResults.COR_E_REMOTING);
  52.         }
  53.        
  54.         protected RemotingException(SerializationInfo info, StreamingContext context) : base(info, context)
  55.         {
  56.         }
  57.     }
  58.    
  59.    
  60.    
  61.    
  62.     [Serializable()]
  63.     [System.Runtime.InteropServices.ComVisible(true)]
  64.     public class ServerException : SystemException
  65.     {
  66.         private static string _nullMessage = Environment.GetResourceString("Remoting_Default");
  67.         // Creates a new ServerException with its message
  68.         // string set to a default message.
  69.         public ServerException() : base(_nullMessage)
  70.         {
  71.             SetErrorCode(__HResults.COR_E_SERVER);
  72.         }
  73.        
  74.         public ServerException(string message) : base(message)
  75.         {
  76.             SetErrorCode(__HResults.COR_E_SERVER);
  77.         }
  78.        
  79.        
  80.         public ServerException(string message, Exception InnerException) : base(message, InnerException)
  81.         {
  82.             SetErrorCode(__HResults.COR_E_SERVER);
  83.         }
  84.        
  85.         internal ServerException(SerializationInfo info, StreamingContext context) : base(info, context)
  86.         {
  87.         }
  88.     }
  89.    
  90.    
  91.     [Serializable()]
  92.     [System.Runtime.InteropServices.ComVisible(true)]
  93.     public class RemotingTimeoutException : RemotingException
  94.     {
  95.        
  96.         private static string _nullMessage = Environment.GetResourceString("Remoting_Default");
  97.        
  98.         // Creates a new RemotingException with its message
  99.         // string set to a default message.
  100.         public RemotingTimeoutException() : base(_nullMessage)
  101.         {
  102.         }
  103.        
  104.         public RemotingTimeoutException(string message) : base(message)
  105.         {
  106.             SetErrorCode(__HResults.COR_E_REMOTING);
  107.         }
  108.        
  109.        
  110.         public RemotingTimeoutException(string message, Exception InnerException) : base(message, InnerException)
  111.         {
  112.             SetErrorCode(__HResults.COR_E_REMOTING);
  113.         }
  114.        
  115.         internal RemotingTimeoutException(SerializationInfo info, StreamingContext context) : base(info, context)
  116.         {
  117.         }
  118.        
  119.     }
  120.     // RemotingTimeoutException
  121. }

Developer Fusion