diff options
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 |
