diff options
author | Max Kellermann <max@musicpd.org> | 2020-07-06 20:58:33 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-07-06 21:08:22 +0200 |
commit | 5ece9685c2dc0441bb0bf1aef3b3e5e548a8ee0c (patch) | |
tree | 18bf9cf4b5be6ee8b66878abb8202852587c8542 /src/PluginUnavailable.hxx | |
parent | e7c5a42821ebe7767f76aabebf1247fddd3c6376 (diff) |
PluginUnavailable: backport class PluginUnconfigured from master
Stop bothering people about the Tidal/Qobuz plugins.
Diffstat (limited to 'src/PluginUnavailable.hxx')
-rw-r--r-- | src/PluginUnavailable.hxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/PluginUnavailable.hxx b/src/PluginUnavailable.hxx index 379bd87bf..a29361ad4 100644 --- a/src/PluginUnavailable.hxx +++ b/src/PluginUnavailable.hxx @@ -27,9 +27,20 @@ * that this plugin is unavailable. It will be disabled, and MPD can * continue initialization. */ -class PluginUnavailable final : public std::runtime_error { +class PluginUnavailable : public std::runtime_error { public: using std::runtime_error::runtime_error; }; +/** + * Like #PluginUnavailable, but denotes that the plugin is not + * available because it was not explicitly enabled in the + * configuration. The message may describe the necessary steps to + * enable it. + */ +class PluginUnconfigured : public PluginUnavailable { +public: + using PluginUnavailable::PluginUnavailable; +}; + #endif |