aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-10-12 15:05:07 +0200
committerPierre Ossman <ossman@cendio.se>2017-10-12 15:05:07 +0200
commit19225507cca088ff965ccfc91bcf6f1fcd9960b3 (patch)
tree5b9f9462cdf9f6dec8c81f4569f73be5be023758 /common/rdr
parentae7c2002d0f92fe84d204137461e91b4d1b70ca3 (diff)
downloadtigervnc-19225507cca088ff965ccfc91bcf6f1fcd9960b3.tar.gz
tigervnc-19225507cca088ff965ccfc91bcf6f1fcd9960b3.zip
Make exception classes have clearer messages
Include the type of exception in the string generated by each subclass. Also simplify the constructs to what is needed.
Diffstat (limited to 'common/rdr')
-rw-r--r--common/rdr/Exception.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/common/rdr/Exception.h b/common/rdr/Exception.h
index 62f452b2..69abbedb 100644
--- a/common/rdr/Exception.h
+++ b/common/rdr/Exception.h
@@ -43,15 +43,11 @@ namespace rdr {
};
struct TimedOut : public Exception {
- TimedOut(const char* s="Timed out") : Exception("%s", s) {}
+ TimedOut() : Exception("Timed out") {}
};
struct EndOfStream : public Exception {
- EndOfStream(const char* s="End of stream") : Exception("%s", s) {}
- };
-
- struct FrameException : public Exception {
- FrameException(const char* s="Frame exception") : Exception("%s", s) {}
+ EndOfStream() : Exception("End of stream") {}
};
}