summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordknn <yoann.blein@free.fr>2012-07-07 11:06:55 (GMT)
committerdknn <yoann.blein@free.fr>2012-09-22 08:55:56 (GMT)
commitc46db93d759330f3c987eb09e514eed280761db4 (patch)
treed873880b850e147cb72a108369684c3dd5844cb3 /Swiften/ScreenSharing
parentdfebe4b6b999845c0ff6c15073f0ae0d0e5b4183 (diff)
downloadswift-contrib-c46db93d759330f3c987eb09e514eed280761db4.zip
swift-contrib-c46db93d759330f3c987eb09e514eed280761db4.tar.bz2
Add missing file
Diffstat (limited to 'Swiften/ScreenSharing')
-rw-r--r--Swiften/ScreenSharing/RTPException.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Swiften/ScreenSharing/RTPException.h b/Swiften/ScreenSharing/RTPException.h
new file mode 100644
index 0000000..8ee944a
--- /dev/null
+++ b/Swiften/ScreenSharing/RTPException.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2012 Yoann Blein
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+#pragma once
+
+#include <exception>
+
+namespace Swift {
+ class RTPException : public std::exception {
+ public:
+ RTPException(const std::string& message) : msg(message) {}
+
+ virtual ~RTPException() throw() {}
+
+ virtual const char* what() const throw() { return msg.c_str(); }
+
+ private:
+ std::string msg;
+ };
+}