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: I16eeca31de290221c7a9184ee0c48cc923466832
diff --git a/dbus/dbushelper.cpp b/dbus/dbushelper.cpp
index 8601733..a192fa2 100644
--- a/dbus/dbushelper.cpp
+++ b/dbus/dbushelper.cpp
@@ -58,7 +58,7 @@
responseMsg.read(response);
}
- catch (const sdbusplus::exception::SdBusError& ex)
+ catch (const sdbusplus::exception::exception& ex)
{
log<level::ERR>("ObjectMapper call failure",
entry("WHAT=%s", ex.what()));
@@ -88,7 +88,7 @@
auto valueResponseMsg = _bus.call(pimMsg);
valueResponseMsg.read(propMap);
}
- catch (const sdbusplus::exception::SdBusError& ex)
+ catch (const sdbusplus::exception::exception& ex)
{
log<level::ERR>("GetAll Properties Failed",
entry("WHAT=%s", ex.what()));