FtpException Constructor
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
FtpException()
Initializes a new instance of the FtpException class.
Declaration
public FtpException()
Remarks
This constructor initializes the Message property of the new instance to a message that describes the general error.
FtpException(String)
Initializes a new instance of the FtpException class with the specified error message.
Declaration
public FtpException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
FtpException(String, FtpExceptionStatus)
Initializes a new instance of the FtpException class with the specified error message and status.
Declaration
public FtpException(string message, FtpExceptionStatus status)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
FtpExceptionStatus | status | One of the FtpExceptionStatus values. |
Remarks
The status must not be ProtocolError. Use FtpException (FtpResponse response) constructor for creating protocol error exceptions.
FtpException(String, Exception)
Initializes a new instance of the FtpException class with the specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public FtpException(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. |
FtpException(String, Exception, FtpExceptionStatus)
Initializes a new instance of the FtpException class with the specified error message, status, and a reference to the inner exception that is the cause of this exception.
Declaration
public FtpException(string message, Exception innerException, FtpExceptionStatus 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. |
FtpExceptionStatus | status | One of the FtpExceptionStatus values. |
Remarks
The status must not be ProtocolError. Use FtpException (FtpResponse response) constructor for creating protocol error exceptions.
FtpException(FtpResponse)
Initializes a new instance of the FtpException class with the specified FtpResponse.
Declaration
public FtpException(FtpResponse response)
Parameters
Type | Name | Description |
---|---|---|
FtpResponse | response | The FtpResponse. |