< Summary

Information
Class: Renci.SshNet.Common.SshAuthenticationException
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\SshAuthenticationException.cs
Line coverage
50%
Covered lines: 6
Uncovered lines: 6
Coverable lines: 12
Total lines: 56
Line coverage: 50%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
.ctor()100%1100%
.ctor(...)100%1100%
.ctor(...)100%10%
.ctor(...)100%10%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\SshAuthenticationException.cs

#LineLine coverage
 1using System;
 2#if FEATURE_BINARY_SERIALIZATION
 3using System.Runtime.Serialization;
 4#endif // FEATURE_BINARY_SERIALIZATION
 5
 6namespace Renci.SshNet.Common
 7{
 8    /// <summary>
 9    /// The exception that is thrown when authentication failed.
 10    /// </summary>
 11#if FEATURE_BINARY_SERIALIZATION
 12    [Serializable]
 13#endif // FEATURE_BINARY_SERIALIZATION
 14    public class SshAuthenticationException : SshException
 15    {
 16        /// <summary>
 17        /// Initializes a new instance of the <see cref="SshAuthenticationException"/> class.
 18        /// </summary>
 1219        public SshAuthenticationException()
 1220        {
 1221        }
 22
 23        /// <summary>
 24        /// Initializes a new instance of the <see cref="SshAuthenticationException"/> class.
 25        /// </summary>
 26        /// <param name="message">The message.</param>
 27        public SshAuthenticationException(string message)
 40428            : base(message)
 40429        {
 40430        }
 31
 32        /// <summary>
 33        /// Initializes a new instance of the <see cref="SshAuthenticationException"/> class.
 34        /// </summary>
 35        /// <param name="message">The message.</param>
 36        /// <param name="innerException">The inner exception.</param>
 37        public SshAuthenticationException(string message, Exception innerException)
 038            : base(message, innerException)
 039        {
 040        }
 41
 42#if FEATURE_BINARY_SERIALIZATION
 43        /// <summary>
 44        /// Initializes a new instance of the <see cref="SshAuthenticationException"/> class.
 45        /// </summary>
 46        /// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the excep
 47        /// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the sour
 48        /// <exception cref="ArgumentNullException">The <paramref name="info"/> parameter is <see langword="null"/>.</ex
 49        /// <exception cref="SerializationException">The class name is <see langword="null"/> or <see cref="Exception.HR
 50        protected SshAuthenticationException(SerializationInfo info, StreamingContext context)
 051            : base(info, context)
 052        {
 053        }
 54#endif // FEATURE_BINARY_SERIALIZATION
 55    }
 56}