Skip to content
Snippets Groups Projects
Commit 06f9a85e authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #6288: simplify SdpException

parent 20900d15
Branches
Tags
No related merge requests found
......@@ -42,7 +42,7 @@
#include <pj/assert.h>
#include <vector>
#include <string>
#include <exception>
#include <stdexcept>
#include "global.h" // FIXME: CodecOrder shouldn't be in global.h
class sdpMedia;
......@@ -51,20 +51,11 @@ namespace sfl {
class AudioCodec;
}
class SdpException : public std::exception
class SdpException : public std::runtime_error
{
public:
SdpException (const std::string& str="") throw() : errstr (str) {}
virtual ~SdpException() throw() {}
virtual const char *what() const throw() {
std::string expt ("SDP: SdpException occured: ");
expt.append (errstr);
return expt.c_str();
}
private:
std::string errstr;
SdpException (const std::string& str="") :
std::runtime_error("SDP: SdpException occured: " + str) {}
};
typedef std::vector<std::string> CryptoOffer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment