From c46db93d759330f3c987eb09e514eed280761db4 Mon Sep 17 00:00:00 2001 From: dknn Date: Sat, 7 Jul 2012 13:06:55 +0200 Subject: Add missing file 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 + +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; + }; +} -- cgit v0.10.2-6-g49f6