aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.cli/usage_error.ccm
blob: 11646e6975e531f4b1597be9b02cb5d0fe74a95a (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
/*
 * This source code is released into the public domain.
 */

module;

#include <string>

export module nihil.cli:usage_error;

import nihil.error;

namespace nihil {

/*
 * Exception thrown to indicate invalid command-line arguments.
 */
export struct usage_error : error {
	usage_error(std::string_view what) : error(what) {}
};

} // namespace nihil