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: I3beb227f7fac887190c15084e6b112ae1e1e11c5
diff --git a/extensions/openpower-pels/src.cpp b/extensions/openpower-pels/src.cpp
index a6498af..6c6a2d4 100644
--- a/extensions/openpower-pels/src.cpp
+++ b/extensions/openpower-pels/src.cpp
@@ -861,7 +861,7 @@
callout =
std::make_unique<src::Callout>(p, locCode, fn, ccin, sn, mrus);
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
std::string msg =
"No VPD found for " + inventoryPath + ": " + e.what();
@@ -872,7 +872,7 @@
CalloutPriority::high, locCode, fn, ccin, sn, mrus);
}
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
std::string msg = "Could not get location code for " + inventoryPath +
": " + e.what();