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: I086be1ec495f58a68ae087441dee3d65cbc630ac
diff --git a/ibm_vpd_utils.cpp b/ibm_vpd_utils.cpp
index 2413a3d..9b5530e 100644
--- a/ibm_vpd_utils.cpp
+++ b/ibm_vpd_utils.cpp
@@ -68,7 +68,7 @@
response.read(result);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("Error in mapper GetSubTree",
entry("ERROR=%s", e.what()));
@@ -178,7 +178,7 @@
method.append(errIntf, pelSeverity, additionalData);
auto resp = bus.call(method);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
throw std::runtime_error(
"Error in invoking D-Bus logging create interface to register PEL");