RetryException.cs 914 B

12345678910111213141516171819202122232425262728293031323334
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel.Channels
  5. {
  6. using System.Runtime.Serialization;
  7. using System.Security;
  8. [Serializable]
  9. public class RetryException : CommunicationException
  10. {
  11. public RetryException()
  12. : this(null, null)
  13. {
  14. }
  15. public RetryException(string message)
  16. : this(message, null)
  17. {
  18. }
  19. public RetryException(string message, Exception innerException)
  20. : base(message ?? SR.GetString(SR.RetryGenericMessage), innerException)
  21. {
  22. }
  23. [SecurityCritical]
  24. protected RetryException(SerializationInfo info, StreamingContext context)
  25. : base(info, context)
  26. {
  27. }
  28. }
  29. }