--- 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;