src/HTTPClient.h
branchv_0
changeset 9 9fdbfbe24161
parent 6 59c9ca066322
child 11 6b913e82f52a
--- a/src/HTTPClient.h	Tue Mar 15 01:47:05 2022 +0100
+++ b/src/HTTPClient.h	Tue Mar 15 23:22:00 2022 +0100
@@ -18,6 +18,7 @@
 
 #include <string>
 #include <vector>
+#include <stdexcept>
 
 #include <relpipe/common/type/typedefs.h>
 
@@ -66,6 +67,17 @@
 		std::string body;
 	};
 
+	class Exception : public std::runtime_error {
+	public:
+
+		Exception(const std::string& message) : runtime_error(message) {
+		}
+
+		Exception(const char* message) : runtime_error(message) {
+		}
+
+	};
+
 	virtual ~HTTPClient();
 	HTTPClient(const HTTPClient&) = delete;
 	HTTPClient& operator=(const HTTPClient&) = delete;