<PackageReference Include="SSH.NET" Version="2013.4.7" />

SshConnectionException

The exception that is thrown when connection was terminated.

Gets the disconnect reason if provided by the server or client. Otherwise None.

Initializes a new instance of the SshConnectionException class.

public SshConnectionException(string message)

Initializes a new instance of the SshConnectionException class.

public SshConnectionException(string message, DisconnectReason disconnectReasonCode)

Initializes a new instance of the SshConnectionException class.

public SshConnectionException(string message, DisconnectReason disconnectReasonCode, Exception inner)

Initializes a new instance of the SshConnectionException class.

public SshConnectionException(string message, Exception innerException)

Initializes a new instance of the SshConnectionException class.

Initializes a new instance of the SshConnectionException class.