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.