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: If9ecc60e370b7ab62e58dc1c3bfdd4051ee9c435
diff --git a/item_updater.cpp b/item_updater.cpp
index d8cf45f..b57650a 100644
--- a/item_updater.cpp
+++ b/item_updater.cpp
@@ -233,7 +233,7 @@
elog<InternalFailure>();
}
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("Error in Mapper call");
elog<InternalFailure>();
@@ -253,7 +253,7 @@
auto strParam = std::get<std::string>(currentChassisState);
return (strParam != CHASSIS_STATE_OFF);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("Error in fetching current Chassis State",
entry("MAPPERRESPONSE=%s",