SftpException Constructor
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9083)
SftpException()
Initializes a new instance of the SftpException class.
Declaration
public SftpException()
Remarks
This constructor initializes the Message property of the new instance to a message that describes the general error.
SftpException(String)
Initializes a new instance of the SftpException class with the specified error message.
Declaration
public SftpException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
SftpException(String, SftpExceptionStatus)
Initializes a new instance of the SftpException class with the specified error message and status.
Declaration
public SftpException(string message, SftpExceptionStatus status)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
SftpExceptionStatus | status | One of the SftpExceptionStatus values. |
SftpException(String, Exception)
Initializes a new instance of the SftpException class with the specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public SftpException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Exception | innerException | The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception. |
SftpException(String, Exception, SftpExceptionStatus)
Initializes a new instance of the SftpException class with the specified error message, status, and a reference to the inner exception that is the cause of this exception.
Declaration
public SftpException(string message, Exception innerException, SftpExceptionStatus status)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Exception | innerException | The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception. |
SftpExceptionStatus | status | One of the SftpExceptionStatus values. |