src/HTTPClient.h
branchv_0
changeset 11 6b913e82f52a
parent 9 9fdbfbe24161
--- a/src/HTTPClient.h	Tue Mar 15 23:29:36 2022 +0100
+++ b/src/HTTPClient.h	Tue Mar 15 23:43:02 2022 +0100
@@ -68,14 +68,26 @@
 	};
 
 	class Exception : public std::runtime_error {
+	private:
+		std::string details;
 	public:
 
+		Exception(const std::string& message, const std::string& details) : runtime_error(message), details(details) {
+		}
+
 		Exception(const std::string& message) : runtime_error(message) {
 		}
 
 		Exception(const char* message) : runtime_error(message) {
 		}
 
+		std::string getDetails() const {
+			return details;
+		}
+		
+		std::string getFullMessage() const {
+			return std::string(what()) + ": " + details;
+		}
 	};
 
 	virtual ~HTTPClient();