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.
Namespace:
Rebex.Net
Assembly:
Rebex.Ftp (in Rebex.Ftp.dll)
Syntax
Visual Basic |
---|
Public Sub New ( _ message As String, _ innerException As Exception, _ status As FtpExceptionStatus _ ) |
C# |
---|
public FtpException( string message, Exception innerException, FtpExceptionStatus status ) |
Parameters
- message
- Type: System..::..String
The message that describes the error.
- innerException
- Type: System..::..Exception
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.
- 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.