diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-11-23 01:23:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-11-23 01:23:20 +0100 |
| commit | a988cabec09c28ba11a0e46f0acdc564aa04baca (patch) | |
| tree | 2e5cd0e1dc2710d30e8055f836b55a6929c87df4 /src/lib/exceptions.h | |
| parent | 38643ec631074ae628a4c414a1e7a3462aba19ed (diff) | |
Clarify error messages about missing configuration.
Diffstat (limited to 'src/lib/exceptions.h')
| -rw-r--r-- | src/lib/exceptions.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 80d4801da..10231f59a 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -471,4 +471,13 @@ public: }; +class MissingConfigurationError : public std::runtime_error +{ +public: + explicit MissingConfigurationError(std::string s) + : std::runtime_error(s) + {} +}; + + #endif |
