1

Closed

Save exception message to a property

description

In many of the functions, it would be helpful to save the exception error message. ie in the try catch: LastErrorText=ex.message.
That way, when a function returns false due to an error, i can read the LastErrorText property to give some sort of feeedback to the user as to why it failed.
Closed Jul 21, 2008 at 1:35 PM by Quango

comments

Quango wrote Jun 14, 2008 at 9:17 AM

I'll have a look to see where this can be implemented. In most cases any exceptions are unhandled by the library and the calling application (ie. your code) will get the exception to handle/store/deal with as it sees fit.

wrote Jun 14, 2008 at 9:17 AM

Quango wrote Jul 21, 2008 at 12:44 PM

I can only see one function that does not throw any exceptions back to the calling client and that is FtpDeleteFile - you could change the return False into "throw" and no exceptions will be caught.

Quango wrote Jul 21, 2008 at 12:44 PM

I am closing this without fixing, not enough interest

wrote Jul 21, 2008 at 12:44 PM

wrote Jul 21, 2008 at 1:35 PM

Resolved with changeset 15142.

wrote Feb 14, 2013 at 6:48 PM

wrote May 16, 2013 at 9:08 AM