Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
1.5k views
in .NET FTP by
Hi, all!

I'm using FTPClient instance of edtFTPnet (free version) library.
How can I determine kind of connection issue in catched FTPException?
I can't see any analog of ErrorCode property :cry:
There is only message string with text describing cause of exception.
IMHO the hard-coded string comparing is not a good way of programming.

Any workarounds?

Thank you!

2 Answers

0 votes
by (162k points)
FTPException inherits the ReplyCode property from FileTransferException.
0 votes
by
FTPException inherits the ReplyCode property from FileTransferException.


I know about it. But in most kinds of errors ReplyCode == -1 :(

Categories

...