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
+1 -2
View File
@@ -21,7 +21,6 @@
#include "backend/hidpp/defs.h"
#include "backend/hidpp20/Device.h"
#include "backend/hidpp20/Feature.h"
#include "features/DeviceFeature.h"
#include "Configuration.h"
#include "util/log.h"
@@ -87,7 +86,7 @@ namespace logid
{
try {
_features.emplace(name, std::make_shared<T>(this));
} catch (backend::hidpp20::UnsupportedFeature& e) {
} catch (features::UnsupportedFeature& e) {
}
}