aboutsummaryrefslogtreecommitdiff
path: root/vendor/voclient/include/xmlrpc-c/girerr.hpp
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /vendor/voclient/include/xmlrpc-c/girerr.hpp
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'vendor/voclient/include/xmlrpc-c/girerr.hpp')
-rw-r--r--vendor/voclient/include/xmlrpc-c/girerr.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/vendor/voclient/include/xmlrpc-c/girerr.hpp b/vendor/voclient/include/xmlrpc-c/girerr.hpp
new file mode 100644
index 00000000..1008722c
--- /dev/null
+++ b/vendor/voclient/include/xmlrpc-c/girerr.hpp
@@ -0,0 +1,31 @@
+#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