Create features::UnsupportedFeature exception
Creates an abstraction layer for hidpp10/hidpp20/etc. UnsupportedFeature exceptions.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user