Class SshConnectionException
- Namespace
- Renci.SshNet.Common
- Assembly
- Renci.SshNet.dll
The exception that is thrown when connection was terminated.
public class SshConnectionException : SshException, ISerializableInheritance
Implements
Inherited Members
Constructors
SshConnectionException()
Initializes a new instance of the Renci.SshNet.Common.SshConnectionException class.
public SshConnectionException()SshConnectionException(string)
Initializes a new instance of the Renci.SshNet.Common.SshConnectionException class.
public SshConnectionException(string message)Parameters
messagestring-
The message.
SshConnectionException(string, DisconnectReason)
Initializes a new instance of the Renci.SshNet.Common.SshConnectionException class.
public SshConnectionException(string message, DisconnectReason disconnectReasonCode)Parameters
messagestring-
The message.
disconnectReasonCodeDisconnectReason-
The disconnect reason code.
SshConnectionException(string, Exception)
Initializes a new instance of the Renci.SshNet.Common.SshConnectionException class.
public SshConnectionException(string message, Exception inner)Parameters
SshConnectionException(string, DisconnectReason, Exception)
Initializes a new instance of the Renci.SshNet.Common.SshConnectionException class.
public SshConnectionException(string message, DisconnectReason disconnectReasonCode, Exception inner)Parameters
messagestring-
The message.
disconnectReasonCodeDisconnectReason-
The disconnect reason code.
innerException-
The inner.
Properties
DisconnectReason
Gets the disconnect reason if provided by the server or client. Otherwise None.
public DisconnectReason DisconnectReason { get; }