Switch SdBusError to generic sdbusplus exception
SdBusError was never supposed to be caught outside of sdbusplus.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Iee1e200cbcf70d6ba548b492042bd6dc0f5e2ba8
diff --git a/manager.cpp b/manager.cpp
index 7d3fd7a..fdd1540 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -29,7 +29,6 @@
namespace fs = std::experimental::filesystem;
using namespace phosphor::logging;
-using sdbusplus::exception::SdBusError;
Manager::Manager(sdbusplus::bus::bus& bus) :
bus(bus),
@@ -69,7 +68,7 @@
}
}
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("sdbusplus error getting logging managed objects",
entry("ERROR=%s", e.what()));
@@ -250,7 +249,7 @@
addChildInterface(objectPath, InterfaceType::CALLOUT, anyObject);
calloutNum++;
}
- catch (const SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("sdbusplus exception", entry("ERROR=%s", e.what()));
}