Class SshConnectionException
The exception that is thrown when connection was terminated.
public class SshConnectionException : SshException, ISerializable
- Inheritance
-
SshConnectionException
- Implements
- Inherited Members
Constructors
SshConnectionException()
Initializes a new instance of the SshConnectionException class.
public SshConnectionException()
SshConnectionException(string)
Initializes a new instance of the SshConnectionException class.
public SshConnectionException(string message)
Parameters
message
stringThe message.
SshConnectionException(string, DisconnectReason)
Initializes a new instance of the SshConnectionException class.
public SshConnectionException(string message, DisconnectReason disconnectReasonCode)
Parameters
message
stringThe message.
disconnectReasonCode
DisconnectReasonThe disconnect reason code.
SshConnectionException(string, DisconnectReason, Exception)
Initializes a new instance of the SshConnectionException class.
public SshConnectionException(string message, DisconnectReason disconnectReasonCode, Exception inner)
Parameters
message
stringThe message.
disconnectReasonCode
DisconnectReasonThe disconnect reason code.
inner
ExceptionThe inner.
SshConnectionException(string, Exception)
Initializes a new instance of the SshConnectionException class.
public SshConnectionException(string message, Exception inner)
Parameters
Properties
DisconnectReason
Gets the disconnect reason if provided by the server or client. Otherwise None.
public DisconnectReason DisconnectReason { get; }