diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-09-03 07:31:15 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-11-06 21:06:27 +0100 |
commit | 9e9083cbedc0e98a03a0da370dd49375dc1cdc91 (patch) | |
tree | 3b094052cd0d4941e8a554ad3b04ec19c0d3f0c3 /common/rdr/TLSInStream.cxx | |
parent | f25de739ea359c2843a596457bcd22a28175b7a4 (diff) | |
download | tigervnc-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/rdr/TLSInStream.cxx')
-rw-r--r-- | common/rdr/TLSInStream.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rdr/TLSInStream.cxx b/common/rdr/TLSInStream.cxx index c0252122..3418c68e 100644 --- a/common/rdr/TLSInStream.cxx +++ b/common/rdr/TLSInStream.cxx @@ -61,10 +61,10 @@ ssize_t TLSInStream::pull(gnutls_transport_ptr_t str, void* data, size_t size) gnutls_transport_set_errno(self->session, e.err); self->saved_exception = new SocketException(e); return -1; - } catch (Exception& e) { + } catch (std::exception& e) { vlog.error("Failure reading TLS data: %s", e.what()); gnutls_transport_set_errno(self->session, EINVAL); - self->saved_exception = new Exception(e); + self->saved_exception = new std::exception(e); return -1; } |