SFTP.LastError Property

Holds last error that occured, if any.

[Visual Basic]
Public ReadOnly Property LastError As System.Exception
[C#]
public System.Exception LastError {get;}

Remarks

LastError property is usefull when wodSFTP.NET is used in blocking mode. In such cases, it is unconvinient to track events (or it's impossible to handle events) so potential errors can no be obtained. For this purpose, after each method call, LastError property will contain potential Exception that occured, or will hold null value if there were no errors.

See Also

SFTP Class | SFTP Members | WeOnlyDo.Client Namespace