diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-09-03 08:01:39 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-11-06 21:06:27 +0100 |
commit | e4c60ef1985164d1207352bbfdf57ae1d7838404 (patch) | |
tree | 737d0db13dca148683ad02de5482c6a88e8d5275 /common/rfb/PixelFormat.cxx | |
parent | 1d9b2f9984fefbc050c8e3295397ffd280e41788 (diff) | |
download | tigervnc-e4c60ef1985164d1207352bbfdf57ae1d7838404.tar.gz tigervnc-e4c60ef1985164d1207352bbfdf57ae1d7838404.zip |
Use specific class for protocol problems
Make it easier to identify communication issues.
Diffstat (limited to 'common/rfb/PixelFormat.cxx')
-rw-r--r-- | common/rfb/PixelFormat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/PixelFormat.cxx b/common/rfb/PixelFormat.cxx index f883cbf5..a538deb7 100644 --- a/common/rfb/PixelFormat.cxx +++ b/common/rfb/PixelFormat.cxx @@ -180,7 +180,7 @@ void PixelFormat::read(rdr::InStream* is) } if (!isSane()) - throw Exception("invalid pixel format"); + throw ProtocolException("invalid pixel format"); updateState(); } |