From f41970666675f873d7c1075efd192f22df8d17fe Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Sun, 22 Jun 2025 14:46:53 +0100 Subject: add nihil.ucl (incomplete) --- nihil.ucl/error.ccm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 nihil.ucl/error.ccm (limited to 'nihil.ucl/error.ccm') 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 +#include + +export module nihil.ucl:error; + +import nihil; + +namespace nihil::ucl { + +/* + * Exception thrown when an issue occurs with UCL. + */ +export struct error : generic_error { + template + error(std::format_string fmt, Args &&...args) + : generic_error(fmt, std::forward(args)...) + {} +}; + +} // namespace nihil::ucl -- cgit v1.2.3