SshException.NET40.cs 1.2 KB

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