From a988cabec09c28ba11a0e46f0acdc564aa04baca Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 23 Nov 2023 01:23:20 +0100 Subject: Clarify error messages about missing configuration. --- src/lib/exceptions.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/exceptions.h') 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 -- cgit v1.2.3