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: I3beb227f7fac887190c15084e6b112ae1e1e11c5
diff --git a/log_manager.cpp b/log_manager.cpp
index 29f5955..c380429 100644
--- a/log_manager.cpp
+++ b/log_manager.cpp
@@ -32,7 +32,6 @@
#include <xyz/openbmc_project/State/Host/server.hpp>
using namespace std::chrono;
-using sdbusplus::exception::SdBusError;
extern const std::map<
phosphor::logging::metadata::Metadata,
std::function<phosphor::logging::metadata::associations::Type>>
@@ -278,7 +277,7 @@
auto reply = this->busLog.call(method);
reply.read(property);
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
lg2::error("Error reading QuiesceOnHwError property: {ERROR}", "ERROR",
e);
@@ -352,7 +351,7 @@
auto reply = this->busLog.call(method);
reply.read(property);
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
// Quiescing the host is a "best effort" type function. If unable to
// read the host state or it comes back empty, just return.