Re: how can i capture exception when the sftp conn (General questions)
Hi,
Well i have used LastError() property to fetch the error but the debugger is not going ahead after sftp.GetFiles(LocalDirectoryPath,RemoteDirectoryPath,maxLevel). It is just going to Sftp.StateChangedEvent and when i check the newstate inside that event it shows me Args.NewState = Disconnected[6]
I have used the LastError property after calling getfiles method
Sftp.GetFiles(LocalDir, RemoteDir, maxLevel)
If Not IsNothing(Sftp.LastError) Then
errorLog = Sftp.LastError.Message()
End If
errorLog is a variable.
Complete thread:
- how can i capture exception when the sftp connecti - hit_arc, 2008-03-25, 07:02
- Re: how can i capture exception when the sftp conn - woddrazen, 2008-03-25, 09:08
- Re: how can i capture exception when the sftp conn - hit_arc, 2008-03-25, 12:24
- Re: how can i capture exception when the sftp conn - woddrazen, 2008-03-25, 13:33
- Re: how can i capture exception when the sftp conn - woddrazen, 2008-03-25, 16:04
- Re: how can i capture exception when the sftp conn - hit_arc, 2008-03-27, 12:36
- Re: how can i capture exception when the sftp conn - woddrazen, 2008-03-27, 13:57
- Re: how can i capture exception when the sftp conn - hit_arc, 2008-03-27, 12:36
- Re: how can i capture exception when the sftp conn - woddrazen, 2008-03-25, 16:04
- Re: how can i capture exception when the sftp conn - woddrazen, 2008-03-25, 13:33
- Re: how can i capture exception when the sftp conn - hit_arc, 2008-03-25, 12:24
- Re: how can i capture exception when the sftp conn - woddrazen, 2008-03-25, 09:08