diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-21 17:18:57 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-21 17:18:57 +0100 |
| commit | d27d1302d1fa1b96bf8f53f17fce947f19d21330 (patch) | |
| tree | f56ef29d7816c3b574b3359c746355a44e3b0819 /nihil.config/error.ccm | |
| parent | 75c6b5fee029ec95e7e45e18525e3e78b9616f48 (diff) | |
| download | nihil-d27d1302d1fa1b96bf8f53f17fce947f19d21330.tar.gz nihil-d27d1302d1fa1b96bf8f53f17fce947f19d21330.tar.bz2 | |
add nihil.config (incomplete)
Diffstat (limited to 'nihil.config/error.ccm')
| -rw-r--r-- | nihil.config/error.ccm | 26 |
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 |
