aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.config/error.ccm
blob: 0da91cb22444b2272d3ec35a1476f3d5d062940e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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