initial load of upstream version 1.06.32
[xmlrpc-c] / include / xmlrpc-c / girerr.hpp
1 #ifndef GIRERR_HPP_INCLUDED
2 #define GIRERR_HPP_INCLUDED
3
4 #include <string>
5 #include <exception>
6
7 #define HAVE_GIRERR_ERROR
8
9 namespace girerr {
10
11 class error : public std::exception {
12 public:
13     error(std::string const& what_arg) : _what(what_arg) {}
14
15     ~error() throw() {}
16
17     virtual const char *
18     what() const throw() { return this->_what.c_str(); };
19
20 private:
21     std::string _what;
22 };
23
24 // throwf() always throws a girerr::error .
25
26 void
27 throwf(const char * const format, ...);
28
29 } // namespace
30
31 #endif