aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.config/error.ccm
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.config/error.ccm')
-rw-r--r--nihil.config/error.ccm26
1 files changed, 26 insertions, 0 deletions
diff --git a/nihil.config/error.ccm b/nihil.config/error.ccm
new file mode 100644
index 0000000..0da91cb
--- /dev/null
+++ b/nihil.config/error.ccm
@@ -0,0 +1,26 @@
+/*
+ * This source code is released into the public domain.
+ */
+
+module;
+
+#include <format>
+#include <utility>
+
+export module nihil.config:error;
+
+import nihil;
+
+namespace nihil::config {
+
+/*
+ * Exception thrown when an issue occurs with the configuration.
+ */
+export struct error : generic_error {
+ template<typename... Args>
+ error(std::format_string<Args...> fmt, Args &&...args)
+ : generic_error(fmt, std::forward<Args>(args)...)
+ {}
+};
+
+} // namespace nihil::config