Initializes a new instance of the FtpException class with the specified error message and status.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Sub New ( _
	message As String, _
	status As FtpExceptionStatus _
)
C#
public FtpException(
	string message,
	FtpExceptionStatus status
)

Parameters

message
Type: System..::..String
The message that describes the error.
status
Type: Rebex.Net..::..FtpExceptionStatus
One of the FtpExceptionStatus values.

Remarks

The status must not be ProtocolError. Use FtpException (FtpResponse response) constructor for creating protocol error exceptions.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also