Create features::UnsupportedFeature exception

Creates an abstraction layer for hidpp10/hidpp20/etc. UnsupportedFeature
exceptions.
This commit is contained in:
pixl
2020-07-18 21:15:39 -04:00
parent 0928b39e03
commit 82ff2bdf38
9 changed files with 55 additions and 26 deletions
+10
View File
@@ -25,6 +25,16 @@ namespace logid {
class Device;
namespace features
{
class UnsupportedFeature : public std::exception
{
public:
UnsupportedFeature() = default;
virtual const char* what() const noexcept
{
return "Unsupported feature";
}
};
class DeviceFeature
{
public: