/* * 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; }; }