diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-22 14:46:53 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-22 14:46:53 +0100 |
| commit | f41970666675f873d7c1075efd192f22df8d17fe (patch) | |
| tree | 09b8c4da91a7efeb37a92d322d3e729e4dbde659 /nihil.ucl/error.ccm | |
| parent | d27d1302d1fa1b96bf8f53f17fce947f19d21330 (diff) | |
| download | nihil-f41970666675f873d7c1075efd192f22df8d17fe.tar.gz nihil-f41970666675f873d7c1075efd192f22df8d17fe.tar.bz2 | |
add nihil.ucl (incomplete)
Diffstat (limited to 'nihil.ucl/error.ccm')
| -rw-r--r-- | nihil.ucl/error.ccm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nihil.ucl/error.ccm b/nihil.ucl/error.ccm new file mode 100644 index 0000000..4eda774 --- /dev/null +++ b/nihil.ucl/error.ccm @@ -0,0 +1,26 @@ +/* + * This source code is released into the public domain. + */ + +module; + +#include <format> +#include <utility> + +export module nihil.ucl:error; + +import nihil; + +namespace nihil::ucl { + +/* + * Exception thrown when an issue occurs with UCL. + */ +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::ucl |
