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: I411acc5238da0ad3d14a963c0d1a3bb4791f23ff
diff --git a/lamptest.cpp b/lamptest.cpp
index 8220f96..1182768 100644
--- a/lamptest.cpp
+++ b/lamptest.cpp
@@ -141,7 +141,7 @@
period = std::get<uint16_t>(properties["Period"]);
dutyOn = std::get<uint8_t>(properties["DutyOn"]);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("Failed to get All properties",
entry("ERROR=%s", e.what()),
@@ -252,7 +252,7 @@
"xyz.openbmc_project.Led.Group", "Asserted",
assertedValue);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("Failed to set Asserted property",
entry("ERROR=%s", e.what()),