aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/Exception.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-08-07 10:08:43 +0200
committerPierre Ossman <ossman@cendio.se>2024-08-07 11:02:18 +0200
commitc9b46b771f5ebbc63c4aef4743c157c4f7407ac9 (patch)
tree924df319be2759784a12ccf2fec251623b782f4e /common/rfb/Exception.h
parentb4363357f5dbba6ced0faa32e47c19047698e8bd (diff)
downloadtigervnc-c9b46b771f5ebbc63c4aef4743c157c4f7407ac9.tar.gz
tigervnc-c9b46b771f5ebbc63c4aef4743c157c4f7407ac9.zip
Remove auth exception prefix
This prefix often just added noise, and could sometimes be added multiple times. It's better that user interface catch the specific exception type and give a more descriptive presentation to the user. This is partially a revert of 1922550.
Diffstat (limited to 'common/rfb/Exception.h')
-rw-r--r--common/rfb/Exception.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/common/rfb/Exception.h b/common/rfb/Exception.h
index 827ced52..4520bc8c 100644
--- a/common/rfb/Exception.h
+++ b/common/rfb/Exception.h
@@ -23,20 +23,16 @@
namespace rfb {
typedef rdr::Exception Exception;
struct AuthFailureException : public Exception {
- AuthFailureException()
- : Exception("Authentication failure") {}
AuthFailureException(const char* reason)
- : Exception("Authentication failure: %s", reason) {}
+ : Exception("%s", reason) {}
};
struct AuthCancelledException : public rfb::Exception {
AuthCancelledException()
: Exception("Authentication cancelled") {}
};
struct ConnFailedException : public Exception {
- ConnFailedException()
- : Exception("Connection failed") {}
ConnFailedException(const char* reason)
- : Exception("Connection failed: %s", reason) {}
+ : Exception("%s", reason) {}
};
}
#endif