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/functor.hpp b/control/functor.hpp
index f24d219..9f81fc5 100644
--- a/control/functor.hpp
+++ b/control/functor.hpp
@@ -137,7 +137,7 @@
auto val = zone.getPropertyByName<T>(_path, _intf, _prop);
_handler(zone, _path, _intf, _prop, std::forward<T>(val));
}
- catch (const sdbusplus::exception::SdBusError&)
+ catch (const sdbusplus::exception::exception&)
{
// Property will not be used unless a property changed
// signal message is received for this property.
@@ -168,7 +168,7 @@
auto val = zone.getPropertyByName<T>(path, intf, prop);
handler(zone, path, intf, prop, std::forward<T>(val));
}
- catch (const sdbusplus::exception::SdBusError&)
+ catch (const sdbusplus::exception::exception&)
{
// Property value not sent to handler
}