aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/SConnection.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-09-03 07:31:15 +0200
committerPierre Ossman <ossman@cendio.se>2024-11-06 21:06:27 +0100
commit9e9083cbedc0e98a03a0da370dd49375dc1cdc91 (patch)
tree3b094052cd0d4941e8a554ad3b04ec19c0d3f0c3 /common/rfb/SConnection.cxx
parentf25de739ea359c2843a596457bcd22a28175b7a4 (diff)
downloadtigervnc-9e9083cbedc0e98a03a0da370dd49375dc1cdc91.tar.gz
tigervnc-9e9083cbedc0e98a03a0da370dd49375dc1cdc91.zip
Subclass exceptions from std::exception
Make sure our exceptions are part of the standard exception class hierarchy.
Diffstat (limited to 'common/rfb/SConnection.cxx')
-rw-r--r--common/rfb/SConnection.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/SConnection.cxx b/common/rfb/SConnection.cxx
index d96ad178..c43ed493 100644
--- a/common/rfb/SConnection.cxx
+++ b/common/rfb/SConnection.cxx
@@ -223,7 +223,7 @@ void SConnection::processSecurityType(int secType)
try {
state_ = RFBSTATE_SECURITY;
ssecurity = security.GetSSecurity(this, secType);
- } catch (rdr::Exception& e) {
+ } catch (std::exception& e) {
failConnection(e.what());
}
}
@@ -293,7 +293,7 @@ void SConnection::handleAuthFailureTimeout(Timer* /*t*/)
authFailureMsg.size());
}
os->flush();
- } catch (rdr::Exception& e) {
+ } catch (std::exception& e) {
close(e.what());
return;
}