mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-01 11:10:24 +00:00
27 lines
419 B
C++
27 lines
419 B
C++
|
#ifndef GIRERR_HPP_INCLUDED
|
||
|
#define GIRERR_HPP_INCLUDED
|
||
|
|
||
|
#include <string>
|
||
|
#include <exception>
|
||
|
|
||
|
#define HAVE_GIRERR_ERROR
|
||
|
|
||
|
namespace girerr {
|
||
|
|
||
|
class error : public std::exception {
|
||
|
public:
|
||
|
error(std::string const& what_arg) : _what(what_arg) {}
|
||
|
|
||
|
~error() throw() {}
|
||
|
|
||
|
virtual const char *
|
||
|
what() const throw() { return this->_what.c_str(); };
|
||
|
|
||
|
private:
|
||
|
std::string _what;
|
||
|
};
|
||
|
|
||
|
} // namespace
|
||
|
|
||
|
#endif
|