aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/Exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/Exception.h')
-rw-r--r--common/rfb/Exception.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/rfb/Exception.h b/common/rfb/Exception.h
index 3c8a461c..b11609d0 100644
--- a/common/rfb/Exception.h
+++ b/common/rfb/Exception.h
@@ -1,4 +1,5 @@
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
+ * Copyright 2014-2024 Pierre Ossman for Cendio AB
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,6 +23,13 @@
namespace rfb {
typedef rdr::Exception Exception;
+
+ class ProtocolException : public Exception {
+ public:
+ ProtocolException(const char* what_arg) : Exception(what_arg) {}
+ ProtocolException(const std::string& what_arg) : Exception(what_arg) {}
+ };
+
struct AuthFailureException : public Exception {
AuthFailureException(const char* reason)
: Exception(reason) {}