ScpException Constructor
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9083)
ScpException()
Initializes a new instance of the ScpException class.
Declaration
public ScpException()
Remarks
This constructor initializes the Message property of the new instance to a message that describes the general error.
ScpException(String)
Initializes a new instance of the ScpException class with the specified error message.
Declaration
public ScpException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
ScpException(String, ScpExceptionStatus)
Initializes a new instance of the ScpException class with the specified error message and status.
Declaration
public ScpException(string message, ScpExceptionStatus status)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
ScpExceptionStatus | status | One of the ScpExceptionStatus values. |
ScpException(String, Exception)
Initializes a new instance of the ScpException class with the specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public ScpException(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. |
ScpException(String, Exception, ScpExceptionStatus)
Initializes a new instance of the ScpException class with the specified error message, status, and a reference to the inner exception that is the cause of this exception.
Declaration
public ScpException(string message, Exception innerException, ScpExceptionStatus 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. |
ScpExceptionStatus | status | One of the ScpExceptionStatus values. |