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: I2ed759771f89c1e2e70accb0bee1f5cf0d7ac2c5
diff --git a/command/session_cmds.cpp b/command/session_cmds.cpp
index 1b51612..aa20941 100644
--- a/command/session_cmds.cpp
+++ b/command/session_cmds.cpp
@@ -154,7 +154,7 @@
}
}
}
- catch (sdbusplus::exception::SdBusError& e)
+ catch (sdbusplus::exception::exception& e)
{
log<level::ERR>("Failed to fetch object from dbus",
entry("INTERFACE=%s", session::sessionIntf),
@@ -263,7 +263,7 @@
session::Manager::get().getSession(handler->sessionID);
currentSessionPriv = currentSession->currentPrivilege();
}
- catch (sdbusplus::exception::SdBusError& e)
+ catch (sdbusplus::exception::exception& e)
{
log<level::ERR>("Failed to fetch object from dbus",
entry("INTERFACE=%s", session::sessionIntf),