exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus.
Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia432ec5539a6af3c761dfbb86916464de5455149
diff --git a/control/json/fan.cpp b/control/json/fan.cpp
index 673859a..3641279 100644
--- a/control/json/fan.cpp
+++ b/control/json/fan.cpp
@@ -103,7 +103,7 @@
_bus, sensor.second, sensor.first, _interface,
FAN_TARGET_PROPERTY, std::move(value));
}
- catch (const sdbusplus::exception::SdBusError&)
+ catch (const sdbusplus::exception::exception&)
{
throw util::DBusPropertyError{
fmt::format("Failed to set target for fan {}", _name).c_str(),