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: Ib7b6d079463ab243e3466ca7bba1cf0da9168d70
diff --git a/dbusUtils.hpp b/dbusUtils.hpp
index 8aed268..72546e1 100644
--- a/dbusUtils.hpp
+++ b/dbusUtils.hpp
@@ -30,7 +30,7 @@
auto msg = bus.call(mapper);
msg.read(resp);
}
- catch (const sdbusplus::exception::SdBusError& ex)
+ catch (const sdbusplus::exception::exception& ex)
{
if (ex.name() == std::string(sdbusplus::xyz::openbmc_project::Common::
Error::ResourceNotFound::errName))
@@ -70,7 +70,7 @@
auto msg = bus.call(method);
msg.read(value);
}
- catch (const sdbusplus::exception::SdBusError& ex)
+ catch (const sdbusplus::exception::exception& ex)
{
return std::numeric_limits<T>::quiet_NaN();
}
diff --git a/virtualSensor.cpp b/virtualSensor.cpp
index 9679b3f..b81201e 100644
--- a/virtualSensor.cpp
+++ b/virtualSensor.cpp
@@ -590,7 +590,7 @@
auto reply = bus.call(method);
reply.read(objects);
}
- catch (const sdbusplus::exception::SdBusError& ex)
+ catch (const sdbusplus::exception::exception& ex)
{
// If entity manager isn't running yet, keep going.
if (std::string("org.freedesktop.DBus.Error.ServiceUnknown") !=