diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-10-20 11:06:13 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-11-06 21:24:36 +0100 |
commit | 2b7857283b834391266e414adcff8c20f8fe3067 (patch) | |
tree | 146051a67b20b217593298eec695aafda89134f6 /vncviewer/UserDialog.cxx | |
parent | ed07250fef4e258d0d37d1c4e520db6d6c1e6fdb (diff) | |
download | tigervnc-2b7857283b834391266e414adcff8c20f8fe3067.tar.gz tigervnc-2b7857283b834391266e414adcff8c20f8fe3067.zip |
Use standard library naming for exceptions
This makes things more consistent since we mix with the standard library
exceptions so often.
Diffstat (limited to 'vncviewer/UserDialog.cxx')
-rw-r--r-- | vncviewer/UserDialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/UserDialog.cxx b/vncviewer/UserDialog.cxx index 56e6c17f..2c8d8474 100644 --- a/vncviewer/UserDialog.cxx +++ b/vncviewer/UserDialog.cxx @@ -117,7 +117,7 @@ void UserDialog::getUserPasswd(bool secure_, std::string* user, fp = fopen(passwordFileName, "rb"); if (!fp) - throw rdr::PosixException(_("Opening password file failed"), errno); + throw rdr::posix_error(_("Opening password file failed"), errno); obfPwd.resize(fread(obfPwd.data(), 1, obfPwd.size(), fp)); fclose(fp); @@ -248,7 +248,7 @@ void UserDialog::getUserPasswd(bool secure_, std::string* user, delete win; if (ret_val != 0) - throw rfb::AuthCancelledException(); + throw rfb::auth_cancelled(); } bool UserDialog::showMsgBox(MsgBoxFlags flags, const char* title, const char* text) |