SshConnectionException.NET40.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using Renci.SshNet.Messages.Transport;
  3. using System.Runtime.Serialization;
  4. namespace Renci.SshNet.Common
  5. {
  6. /// <summary>
  7. /// The exception that is thrown when connection was terminated.
  8. /// </summary>
  9. [Serializable]
  10. public partial class SshConnectionException : SshException
  11. {
  12. /// <summary>
  13. /// Initializes a new instance of the <see cref="SshConnectionException"/> class.
  14. /// </summary>
  15. /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
  16. /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param>
  17. /// <exception cref="T:System.ArgumentNullException">The <paramref name="info"/> parameter is null. </exception>
  18. ///
  19. /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0). </exception>
  20. protected SshConnectionException(SerializationInfo info, StreamingContext context)
  21. : base(info, context)
  22. {
  23. }
  24. /// <summary>
  25. /// Gets the object data.
  26. /// </summary>
  27. /// <param name="info">The info.</param>
  28. /// <param name="context">The context.</param>
  29. public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
  30. {
  31. base.GetObjectData(info, context);
  32. }
  33. }
  34. }