<PackageReference Include="SSH.NET" Version="2016.0.0-beta1" />

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.