mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-06 19:58:34 +00:00
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8545 d0543943-73ff-0310-b7d9-9358b9ac24b2
32 lines
510 B
C++
32 lines
510 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;
|
|
};
|
|
|
|
// throwf() always throws a girerr::error .
|
|
|
|
void
|
|
throwf(const char * const format, ...);
|
|
|
|
} // namespace
|
|
|
|
#endif
|