SshAuthenticationException.NET40.cs 1.3 KB

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