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: I03198711b6d148e82106ca6ff809c25d814ad201
diff --git a/pldm.cpp b/pldm.cpp
index d22a73d..2552183 100644
--- a/pldm.cpp
+++ b/pldm.cpp
@@ -12,7 +12,6 @@
namespace pldm
{
-using sdbusplus::exception::SdBusError;
using namespace phosphor::logging;
void Interface::fetchOCCSensorInfo(const PdrList& pdrs,
@@ -87,7 +86,7 @@
auto responseMsg = bus.call(method);
responseMsg.read(pdrs);
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("pldm: Failed to fetch the OCC state sensor PDRs",
entry("ERROR=%s", e.what()));
@@ -259,7 +258,7 @@
auto responseMsg = bus.call(method);
responseMsg.read(pdrs);
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("pldm: Failed to fetch the OCC state effecter PDRs",
entry("ERROR=%s", e.what()));
@@ -298,7 +297,7 @@
auto reply = bus.call(method);
reply.read(instanceId);
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("pldm: GetInstanceId returned error",
entry("ERROR=%s", e.what()));