Core/SSH: SetError internal method is renamed as ThrowError to better describe its function.

git-svn-id: svn://ultimatepp.org/upp/trunk@15504 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
oblivion 2020-11-23 22:24:35 +00:00
parent ce6e887992
commit 13766bd1c6
8 changed files with 81 additions and 81 deletions

View file

@ -61,8 +61,8 @@ protected:
bool WouldBlock(int rc) { return rc == LIBSSH2_ERROR_EAGAIN; }
bool WouldBlock() { return ssh->session && WouldBlock(libssh2_session_last_errno(ssh->session)); }
bool IsTimeout() const { return !IsNull(ssh->timeout) && ssh->timeout > 0 && msecs(ssh->start_time) >= ssh->timeout; }
void SetError(int rc, const String& reason = Null);
void ReportError(int rc, const String& reason);
void ThrowError(int rc, const String& reason = Null);
void SetError(int rc, const String& reason);
void UpdateClient() { WhenWait ? WhenWait() : ssh->whenwait(); }
private: