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/utils.cpp b/src/utils.cpp
index 949a1e1..5889b6b 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -113,7 +113,7 @@
}
return ret;
}
- catch (const sdbusplus::exception::SdBusError& ex)
+ catch (const sdbusplus::exception::exception& ex)
{
log<level::ERR>("GetObject call failed", entry("PATH=%s", path),
entry("INTERFACE=%s", interface));
@@ -192,7 +192,7 @@
reply.read(value);
return any(value);
}
- catch (const sdbusplus::exception::SdBusError& ex)
+ catch (const sdbusplus::exception::exception& ex)
{
log<level::ERR>("GetProperty call failed", entry("PATH=%s", path),
entry("INTERFACE=%s", interface),