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

* #6288: simplify SdpException

parent 20900d15
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#include <pj/assert.h> #include <pj/assert.h>
#include <vector> #include <vector>
#include <string> #include <string>
#include <exception> #include <stdexcept>
#include "global.h" // FIXME: CodecOrder shouldn't be in global.h #include "global.h" // FIXME: CodecOrder shouldn't be in global.h
class sdpMedia; class sdpMedia;
...@@ -51,20 +51,11 @@ namespace sfl { ...@@ -51,20 +51,11 @@ namespace sfl {
class AudioCodec; class AudioCodec;
} }
class SdpException : public std::exception class SdpException : public std::runtime_error
{ {
public: public:
SdpException (const std::string& str="") throw() : errstr (str) {} SdpException (const std::string& str="") :
std::runtime_error("SDP: SdpException occured: " + 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;
}; };
typedef std::vector<std::string> CryptoOffer; 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