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: I013d8a225f7a15601a5defa487d7030daad77270
diff --git a/extensions/phal/create_pel.cpp b/extensions/phal/create_pel.cpp
index 6c53228..379e87e 100644
--- a/extensions/phal/create_pel.cpp
+++ b/extensions/phal/create_pel.cpp
@@ -70,7 +70,7 @@
method.append(bootErrorMessage, level, additionalData, pelCalloutInfo);
auto resp = bus.call(method);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("D-Bus call exception",
entry("OBJPATH=%s", loggingObjectPath),
@@ -105,7 +105,7 @@
method.append(event, level, additionalData);
auto resp = bus.call(method);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>(fmt::format("sdbusplus D-Bus call exception",
"OBJPATH={}, INTERFACE={}, EXCEPTION={}",