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: Ic5d65c069f9d15ccbb81419180edcf119f8ee08e
diff --git a/writefrudata.cpp b/writefrudata.cpp
index eca66d6..c749013 100644
--- a/writefrudata.cpp
+++ b/writefrudata.cpp
@@ -144,7 +144,7 @@
auto mapperResponseMsg = bus.call(mapperCall);
mapperResponseMsg.read(mapperResponse);
}
- catch (const sdbusplus::exception::SdBusError& ex)
+ catch (const sdbusplus::exception::exception& ex)
{
log<level::ERR>("Exception from sdbus call",
entry("WHAT=%s", ex.what()));
@@ -288,7 +288,7 @@
{
auto inventoryMgrResponseMsg = bus.call(pimMsg);
}
- catch (const sdbusplus::exception::SdBusError& ex)
+ catch (const sdbusplus::exception::exception& ex)
{
log<level::ERR>("Error in notify call", entry("WHAT=%s", ex.what()),
entry("SERVICE=%s", service.c_str()),