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/Exception.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/Exception.cxx')
-rw-r--r-- | common/rdr/Exception.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/common/rdr/Exception.cxx b/common/rdr/Exception.cxx index 53637cac..b2c7e7d0 100644 --- a/common/rdr/Exception.cxx +++ b/common/rdr/Exception.cxx @@ -42,16 +42,6 @@ using namespace rdr; -Exception::Exception(const char *message) -{ - snprintf(str_, sizeof(str_), "%s", message); -} - -Exception::Exception(const std::string& message) -{ - snprintf(str_, sizeof(str_), "%s", message.c_str()); -} - GAIException::GAIException(const char* s, int err_) : Exception(rfb::format("%s: %s (%d)", s, strerror(err_).c_str(), err_)), |