blob: 8ee944a4a0067eebfa1299275a67188ad207dc3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
};
}
|