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: I1737844b9bcf1956ae508b149f0c70b4f1ebca52
diff --git a/bmc/general_systemd.cpp b/bmc/general_systemd.cpp
index ecd15d4..69b965b 100644
--- a/bmc/general_systemd.cpp
+++ b/bmc/general_systemd.cpp
@@ -93,7 +93,7 @@
std::fprintf(stderr, "Canceled %s: %s\n", triggerService.c_str(),
job->c_str());
}
- catch (const sdbusplus::exception::SdBusError& ex)
+ catch (const sdbusplus::exception::exception& ex)
{
std::fprintf(stderr, "Failed to cancel job %s %s: %s\n",
triggerService.c_str(), job->c_str(), ex.what());
@@ -126,7 +126,7 @@
{
m.read(job_id, job_path, unit, result);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
std::fprintf(stderr, "Bad JobRemoved signal %s: %s\n",
triggerService.c_str(), e.what());