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/utils.cpp b/utils.cpp
index 04b24bf..85c650e 100644
--- a/utils.cpp
+++ b/utils.cpp
@@ -38,7 +38,6 @@
namespace utils
{
-using sdbusplus::exception::SdBusError;
using namespace phosphor::logging;
constexpr auto HIOMAPD_PATH = "/xyz/openbmc_project/Hiomapd";
@@ -68,7 +67,7 @@
}
return mapperResponse[0].first;
}
- catch (const sdbusplus::exception::SdBusError& ex)
+ catch (const sdbusplus::exception::exception& ex)
{
log<level::ERR>("Mapper call failed", entry("METHOD=%d", "GetObject"),
entry("PATH=%s", path.c_str()),
@@ -87,7 +86,7 @@
{
bus.call_noreply(method);
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("Error in mboxd suspend call",
entry("ERROR=%s", e.what()));
@@ -106,7 +105,7 @@
{
bus.call_noreply(method);
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("Error in mboxd suspend call",
entry("ERROR=%s", e.what()));