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: I3f173e46d23ab9a21f37356df848f5226ccf7962
diff --git a/src/activation.cpp b/src/activation.cpp
index 13b42cc..8ea4f25 100644
--- a/src/activation.cpp
+++ b/src/activation.cpp
@@ -24,7 +24,6 @@
namespace softwareServer = sdbusplus::xyz::openbmc_project::Software::server;
using namespace phosphor::logging;
-using sdbusplus::exception::SdBusError;
using SoftwareActivation = softwareServer::Activation;
auto Activation::activation(Activations value) -> Activations
@@ -96,7 +95,7 @@
bus.call_noreply(method);
return true;
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("Error staring service", entry("ERROR=%s", e.what()));
onUpdateFailed();
@@ -265,7 +264,7 @@
{
bus.call(method);
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("Error performing call to Delete object path",
entry("ERROR=%s", e.what()),