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: I3beb227f7fac887190c15084e6b112ae1e1e11c5
diff --git a/extensions/openpower-pels/dbus_watcher.hpp b/extensions/openpower-pels/dbus_watcher.hpp
index c674abb..54cf6d4 100644
--- a/extensions/openpower-pels/dbus_watcher.hpp
+++ b/extensions/openpower-pels/dbus_watcher.hpp
@@ -7,7 +7,6 @@
namespace openpower::pels
{
-using sdbusplus::exception::SdBusError;
namespace match_rules = sdbusplus::bus::match::rules;
/**
@@ -120,7 +119,7 @@
{
read(dataIface, service);
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
// Path doesn't exist now
}
@@ -300,7 +299,7 @@
{
read(dataIface);
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
// Path doesn't exist now
}