diff options
Diffstat (limited to 'Swiften/ScreenSharing')
-rw-r--r-- | Swiften/ScreenSharing/RTPException.h | 23 |
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; + }; +} |