Re: how can i capture exception when the sftp conn - WeOnlyDo Discussion board

Re: how can i capture exception when the sftp conn (General questions)

by hit_arc, Tuesday, March 25, 2008, 12:24 (6090 days ago) @ woddrazen

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: