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 /common/rfb/DecodeManager.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 'common/rfb/DecodeManager.cxx')
-rw-r--r-- | common/rfb/DecodeManager.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/DecodeManager.cxx b/common/rfb/DecodeManager.cxx index 0475d62d..09118f36 100644 --- a/common/rfb/DecodeManager.cxx +++ b/common/rfb/DecodeManager.cxx @@ -114,14 +114,14 @@ bool DecodeManager::decodeRect(const Rect& r, int encoding, if (!Decoder::supported(encoding)) { vlog.error("Unknown encoding %d", encoding); - throw ProtocolException("Unknown encoding"); + throw protocol_error("Unknown encoding"); } if (!decoders[encoding]) { decoders[encoding] = Decoder::createDecoder(encoding); if (!decoders[encoding]) { vlog.error("Unknown encoding %d", encoding); - throw ProtocolException("Unknown encoding"); + throw protocol_error("Unknown encoding"); } } |