From 55abb4f6f81fc370e349385b38dffb05fa9d5dcb Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Sat, 19 Apr 2025 20:36:38 +0000
Subject: [PATCH] add vscodium / vscode and vim syntax highlight
---
src/Modules/BaseModule.hpp | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/Modules/BaseModule.hpp b/src/Modules/BaseModule.hpp
index a629851..a22cfd9 100644
--- a/src/Modules/BaseModule.hpp
+++ b/src/Modules/BaseModule.hpp
@@ -3,6 +3,8 @@
#define MODULES_BASEMODULE_HPP
+// Base exception type for module errors
+#include "../BaseException.hpp"
namespace Modules {
/**
@@ -20,5 +22,19 @@
virtual void registerModule() = 0;
};
+/**
+ * @brief Exception type for errors thrown within module functions.
+ * Inherit from BaseException to allow rich error messages.
+ */
+class Exception : public ::BaseException {
+ public:
+ /**
+ * Construct a module exception with a message.
+ * @param msg Error message
+ */
+ explicit Exception(const std::string & msg)
+ : BaseException(msg) {}
+};
+
} // namespace Modules
#endif // MODULES_BASEMODULE_HPP
\ No newline at end of file
--
Gitblit v1.9.3